git-svn-id: https://dev.finn.de/svn/cockpit/trunk@935 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent 94198314de
commit f4bb4247e9
  1. 2
      lib/costs_time_entry_patch.rb

@ -48,7 +48,7 @@ module CostsTimeEntryPatch
# to trigger the update of the costs based on new rates
if conditions.keys == [:issue_id] && updates =~ /^project_id = ([\d]+)$/
project_id = $1
time_entries = TimeEntries.all(:conditions => conditions)
time_entries = TimeEntry.all(:conditions => conditions)
time_entries.each do |entry|
entry.project_id = project_id
entry.save!

Loading…
Cancel
Save