Commit 525b85b1 authored by jplang's avatar jplang
Browse files

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

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6cec07d8
......@@ -530,7 +530,7 @@ class Issue < ActiveRecord::Base
self.project_id = p_id
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
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