Project

General

Profile

Feature #1653 ยป issue.patch

Hiroyuki Yoshioka, 2008-07-17 17:16

View differences:

issue.rb (working copy)
74 74
          self.relations_to.clear
75 75
        end
76 76
        # issue is moved to another project
77
        self.category = nil 
77
        ic = IssueCategory.find(:first, :conditions=>["project_id=? and name=?",
78
          new_project.id, self.category.name]) if self.category
79
        ic ? self.category = ic : self.category = nil
78 80
        self.fixed_version = nil
79 81
        self.project = new_project
80 82
      end
    (1-1/1)