summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-11 15:31:42 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-11 15:31:42 +0000
commit435c90eb478e705dff9ea239fd280a958a4287e3 (patch)
tree531e116594529af7016f7360d78ae67e7e9cdacd /app/views
parent700c302fca1ef401eff2744ffc5d955406136b17 (diff)
downloadredmine-435c90eb478e705dff9ea239fd280a958a4287e3.tar.gz
redmine-435c90eb478e705dff9ea239fd280a958a4287e3.zip
Refactor: extract TimelogController#edit to #update
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4248 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/timelog/edit.rhtml7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/timelog/edit.rhtml b/app/views/timelog/edit.rhtml
index 79a95b572..5ab977460 100644
--- a/app/views/timelog/edit.rhtml
+++ b/app/views/timelog/edit.rhtml
@@ -1,6 +1,11 @@
<h2><%= l(:label_spent_time) %></h2>
-<% labelled_tabular_form_for :time_entry, @time_entry, :url => {:action => (@time_entry.new_record? ? 'create' : 'edit'), :id => @time_entry, :project_id => @time_entry.project} do |f| %>
+<% labelled_tabular_form_for(:time_entry, @time_entry, :url => {
+ :action => (@time_entry.new_record? ? 'create' : 'update'),
+ :id => @time_entry,
+ :project_id => @time_entry.project
+ },
+ :html => {:method => @time_entry.new_record? ? :post : :put}) do |f| %>
<%= error_messages_for 'time_entry' %>
<%= back_url_hidden_field_tag %>