Defect #2707 » 0001-Fixed-the-TimeLog-form-it-was-always-posting-to-the.patch
| app/views/timelog/edit.rhtml | ||
|---|---|---|
|
<h2><%= l(:label_spent_time) %></h2>
|
||
|
|
||
|
<% labelled_tabular_form_for :time_entry, @time_entry, :url => {:action => 'edit', :id => @time_entry, :project_id => @time_entry.project} do |f| %>
|
||
|
<% labelled_tabular_form_for :time_entry, @time_entry, :url => {:action => 'edit', :project_id => @time_entry.project}, :method => :post do |f| %>
|
||
|
<%= error_messages_for 'time_entry' %>
|
||
|
<%= back_url_hidden_field_tag %>
|
||
|
|
||
| config/routes.rb | ||
|---|---|---|
|
map.connect 'help/:ctrl/:page', :controller => 'help'
|
||
|
|
||
|
map.connect 'time_entries/:id/edit', :action => 'edit', :controller => 'timelog'
|
||
|
map.connect 'projects/:project_id/time_entries/new', :action => 'edit', :controller => 'timelog'
|
||
|
map.connect 'projects/:project_id/time_entries/new', :action => 'edit', :controller => 'timelog', :method => :get
|
||
|
map.connect 'projects/:project_id/issues/:issue_id/time_entries/new', :action => 'edit', :controller => 'timelog'
|
||
|
|
||
|
map.with_options :controller => 'timelog' do |timelog|
|
||
| test/functional/timelog_controller_test.rb | ||
|---|---|---|
|
)
|
||
|
assert_routing(
|
||
|
{:method => :get, :path => '/projects/ecookbook/time_entries/new'},
|
||
|
:controller => 'timelog', :action => 'edit', :project_id => 'ecookbook'
|
||
|
:controller => 'timelog', :action => 'edit', :project_id => 'ecookbook', :method => :get
|
||
|
)
|
||
|
assert_routing(
|
||
|
{:method => :get, :path => '/projects/ecookbook/issues/567/time_entries/new'},
|
||
- « Previous
- 1
- 2
- Next »