]> source.dussan.org Git - redmine.git/commit
When a specific TimeEntryActivity are change, associated TimeEntries will be
authorEric Davis <edavis@littlestreamsoftware.com>
Wed, 21 Oct 2009 22:34:52 +0000 (22:34 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Wed, 21 Oct 2009 22:34:52 +0000 (22:34 +0000)
commit37d401ac58c36fc060ba795d1f3a3f36fa1dc4dc
tree084ca017e6b3c84911a43b2ac7ce7edc565e6b16
parent5833ba9f81f0384e5b7f5a9d322adb1c5199e3d8
When a specific TimeEntryActivity are change, associated TimeEntries will be
re-assigned to the correct record.

* Renamed build to create since the methods now create objects.
* Removed call to Project#save that isn't needed since objects are saved directly now.
* Wrapped the activity creation and updates in a SQL transaction so TimeEntries
  will remain in a consistent state if there is an error.
* When a Project's TimeEntryActivities are destroyed, they are now
  reassigned to the parent TimeEntryActivity.

  #4077

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2950 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/controllers/projects_controller.rb
app/models/project.rb
test/fixtures/time_entries.yml
test/functional/projects_controller_test.rb