##// END OF EJS Templates
Fixes broken action url on time edit form (#2707)....
Jean-Philippe Lang -
r2373:cf5658d7fe04
parent child
Show More
@@ -1,6 +1,6
1 <h2><%= l(:label_spent_time) %></h2>
1 <h2><%= l(:label_spent_time) %></h2>
2
2
3 <% labelled_tabular_form_for :time_entry, @time_entry, :url => {:action => 'edit', :project_id => @time_entry.project} do |f| %>
3 <% labelled_tabular_form_for :time_entry, @time_entry, :url => {:action => 'edit', :id => @time_entry, :project_id => @time_entry.project} do |f| %>
4 <%= error_messages_for 'time_entry' %>
4 <%= error_messages_for 'time_entry' %>
5 <%= back_url_hidden_field_tag %>
5 <%= back_url_hidden_field_tag %>
6
6
@@ -62,6 +62,15 class TimelogControllerTest < Test::Unit::TestCase
62 :content => 'Development'
62 :content => 'Development'
63 end
63 end
64
64
65 def test_get_edit_existing_time
66 @request.session[:user_id] = 2
67 get :edit, :id => 2, :project_id => nil
68 assert_response :success
69 assert_template 'edit'
70 # Default activity selected
71 assert_tag :tag => 'form', :attributes => { :action => '/projects/ecookbook/timelog/edit/2' }
72 end
73
65 def test_post_edit
74 def test_post_edit
66 # TODO: should POST to issues’ time log instead of project. change form
75 # TODO: should POST to issues’ time log instead of project. change form
67 # and routing
76 # and routing
General Comments 0
You need to be logged in to leave comments. Login now