]> source.dussan.org Git - redmine.git/commitdiff
Merged r17459 from trunk to 3.3-stable (#29308).
authorGo MAEDA <maeda@farend.jp>
Thu, 2 Aug 2018 08:59:45 +0000 (08:59 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 2 Aug 2018 08:59:45 +0000 (08:59 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@17461 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/timelog_controller.rb
test/functional/timelog_controller_test.rb

index 908e7ebac4fce700643ecd1990f7b676b52b738a..aecb8fb98114fc0b7a20fc8794fe99192f68d360 100644 (file)
@@ -119,6 +119,7 @@ class TimelogController < ApplicationController
               :time_entry => {
                 :project_id => params[:time_entry][:project_id],
                 :issue_id => @time_entry.issue_id,
+                :spent_on => @time_entry.spent_on,
                 :activity_id => @time_entry.activity_id
               },
               :back_url => params[:back_url]
index b1c64f5d405f9f5dbf551312da6313c4dea23a0c..da6d010a2fb71fdcdf984adf8289c930787a8ead 100644 (file)
@@ -245,7 +245,7 @@ class TimelogControllerTest < ActionController::TestCase
                                     :spent_on => '2008-03-14',
                                     :hours => '7.3'},
                     :continue => '1'
-      assert_redirected_to '/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=&time_entry%5Bproject_id%5D=1'
+      assert_redirected_to '/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=&time_entry%5Bproject_id%5D=1&time_entry%5Bspent_on%5D=2008-03-14'
     end
   end
 
@@ -258,7 +258,7 @@ class TimelogControllerTest < ActionController::TestCase
                                     :spent_on => '2008-03-14',
                                     :hours => '7.3'},
                     :continue => '1'
-      assert_redirected_to '/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=1&time_entry%5Bproject_id%5D='
+      assert_redirected_to '/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=1&time_entry%5Bproject_id%5D=&time_entry%5Bspent_on%5D=2008-03-14'
     end
   end
 
@@ -271,7 +271,7 @@ class TimelogControllerTest < ActionController::TestCase
                                     :spent_on => '2008-03-14',
                                     :hours => '7.3'},
                     :continue => '1'
-      assert_redirected_to '/projects/ecookbook/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=&time_entry%5Bproject_id%5D='
+      assert_redirected_to '/projects/ecookbook/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=&time_entry%5Bproject_id%5D=&time_entry%5Bspent_on%5D=2008-03-14'
     end
   end
 
@@ -284,7 +284,7 @@ class TimelogControllerTest < ActionController::TestCase
                                     :spent_on => '2008-03-14',
                                     :hours => '7.3'},
                     :continue => '1'
-      assert_redirected_to '/issues/1/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=1&time_entry%5Bproject_id%5D='
+      assert_redirected_to '/issues/1/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=1&time_entry%5Bproject_id%5D=&time_entry%5Bspent_on%5D=2008-03-14'
     end
   end