1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-20 15:31:12 +00:00

Conditions cleanup.

git-svn-id: http://svn.redmine.org/redmine/trunk@14692 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-10-19 17:18:18 +00:00
parent e5ccc400d5
commit 7d558120d3

View 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