From 41f50d4e36e497b31c0767767c2fe163bccb57c6 Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Mon, 12 Aug 2013 13:52:42 +0200 Subject: [PATCH] Adapts modified AAJ interface --- app/controllers/work_packages/moves_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/work_packages/moves_controller.rb b/app/controllers/work_packages/moves_controller.rb index 240ceb1db7..d5e21c9d39 100644 --- a/app/controllers/work_packages/moves_controller.rb +++ b/app/controllers/work_packages/moves_controller.rb @@ -28,7 +28,9 @@ class WorkPackages::MovesController < ApplicationController moved_work_packages = [] @work_packages.each do |work_package| work_package.reload - work_package.init_journal(User.current, @notes || "") + + JournalManager.add_journal work_package, User.current, @notes || "" + call_hook(:controller_work_packages_move_before_save, { :params => params, :work_package => work_package, :target_project => @target_project, :copy => !!@copy }) if r = work_package.move_to_project(@target_project, new_type, {:copy => @copy, :attributes => extract_changed_attributes_for_move(params)}) moved_work_packages << r