Commit 525b85b1 authored by jplang's avatar jplang

Cannot clear category field on copying an Issue (#28951).

git-svn-id: https://svn.redmine.org/redmine/trunk@17395 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6cec07d8
...@@ -530,7 +530,7 @@ class Issue < ActiveRecord::Base ...@@ -530,7 +530,7 @@ class Issue < ActiveRecord::Base
self.project_id = p_id self.project_id = p_id
end end
if project_id_changed? && attrs['category_id'].to_s == category_id_was.to_s if project_id_changed? && attrs['category_id'].present? && attrs['category_id'].to_s == category_id_was.to_s
# Discard submitted category on previous project # Discard submitted category on previous project
attrs.delete('category_id') attrs.delete('category_id')
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment