refs #254115 params[:issue][:project_id] must not by present

This commit is contained in:
Karel Pičman 2018-06-29 14:34:26 +02:00
parent 0017d5d5dc
commit a7a1811c24

View File

@ -73,7 +73,7 @@ module RedmineDmsf
issue = context[:issue]
params = context[:params]
controller = context[:controller]
if edit && params[:issue]
if edit && params[:issue] && params[:issue][:project_id].present?
project_id = params[:issue][:project_id].to_i
old_project_id = context[:project].id
# Sync the title with the issue's subject