diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/issue_relations_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/issues_controller.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/issue_relations_controller.rb b/app/controllers/issue_relations_controller.rb index 13515df0c..2ff06c582 100644 --- a/app/controllers/issue_relations_controller.rb +++ b/app/controllers/issue_relations_controller.rb @@ -45,6 +45,7 @@ class IssueRelationsController < ApplicationController if params[:relation] && m = params[:relation][:issue_to_id].to_s.strip.match(/^#?(\d+)$/) @relation.issue_to = Issue.visible.find_by_id(m[1].to_i) end + @relation.init_journals(User.current) saved = @relation.save respond_to do |format| @@ -64,6 +65,7 @@ class IssueRelationsController < ApplicationController def destroy raise Unauthorized unless @relation.deletable? + @relation.init_journals(User.current) @relation.destroy respond_to do |format| diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index f3e27928d..200d8b112 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -406,6 +406,7 @@ class IssuesController < ApplicationController def build_new_issue_from_params if params[:id].blank? @issue = Issue.new + @issue.init_journal(User.current) if params[:copy_from] begin @copy_from = Issue.visible.find(params[:copy_from]) |