diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-19 17:18:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-19 17:18:18 +0000 |
commit | 7d558120d3cf4896474f05d4e840c93b722e2a0c (patch) | |
tree | 29806dc664956c7defbe4206a098ebd648ee752a | |
parent | e5ccc400d5884d5c403bbda11e7f0a411c803670 (diff) | |
download | redmine-7d558120d3cf4896474f05d4e840c93b722e2a0c.tar.gz redmine-7d558120d3cf4896474f05d4e840c93b722e2a0c.zip |
Conditions cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@14692 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 2704be247..5e1d0c44c 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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 |