From: Jean-Philippe Lang Date: Mon, 19 Oct 2015 17:18:18 +0000 (+0000) Subject: Conditions cleanup. X-Git-Tag: 3.2.0~168 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7d558120d3cf4896474f05d4e840c93b722e2a0c;p=redmine.git Conditions cleanup. git-svn-id: http://svn.redmine.org/redmine/trunk@14692 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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