]> source.dussan.org Git - redmine.git/commitdiff
Conditions cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 19 Oct 2015 17:18:18 +0000 (17:18 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 19 Oct 2015 17:18:18 +0000 (17:18 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14692 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/project.rb

index 2704be2476030eb6879cfb347f65ad3a5264bc02..5e1d0c44c49d4a22a8f336564d6409d3b402d3a8 100644 (file)
@@ -279,8 +279,8 @@ class Project < ActiveRecord::Base
           raise ActiveRecord::Rollback, "Overriding TimeEntryActivity was not successfully saved"
         else
           self.time_entries.
-            where(["activity_id = ?", parent_activity.id]).
-            update_all("activity_id = #{project_activity.id}")
+            where(:activity_id => parent_activity.id).
+            update_all(:activity_id => project_activity.id)
         end
       end
     end