mirror of
https://github.com/redmine/redmine.git
synced 2026-06-17 20:10:30 +02:00
Conditions cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@14692 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user