redmine-2.3.0_issue_relation.patch

app/models/issue_relation.rb - Damien Viennot, 2014-09-24 17:49

Download (1.3 KB)

View differences:

redmine-2.3.0/app/models/issue_relation.rb 2014-09-18 17:35:08.575357563 +0200
42 42
  TYPE_FOLLOWS      = "follows"
43 43
  TYPE_COPIED_TO    = "copied_to"
44 44
  TYPE_COPIED_FROM  = "copied_from"
45
  TYPE_MIRRORS      = "mirror"
46
  TYPE_MIRRORED     = "mirrored"
45 47

  
46 48
  TYPES = {
47 49
    TYPE_RELATES =>     { :name => :label_relates_to, :sym_name => :label_relates_to,
......
61 63
    TYPE_COPIED_TO =>   { :name => :label_copied_to, :sym_name => :label_copied_from,
62 64
                          :order => 8, :sym => TYPE_COPIED_FROM },
63 65
    TYPE_COPIED_FROM => { :name => :label_copied_from, :sym_name => :label_copied_to,
64
                          :order => 9, :sym => TYPE_COPIED_TO, :reverse => TYPE_COPIED_TO }
66
                          :order => 9, :sym => TYPE_COPIED_TO, :reverse => TYPE_COPIED_TO },
67
    TYPE_MIRRORS =>      { :name => :label_mirror, :sym_name => :label_mirrored,
68
                          :order => 10, :sym => TYPE_MIRRORED, :reverse => TYPE_MIRRORED },
69
    TYPE_MIRRORED =>      { :name => :label_mirrored, :sym_name => :label_mirror,
70
                          :order => 11, :sym => TYPE_MIRRORS, :reverse => TYPE_MIRRORS }
65 71
  }.freeze
66 72

  
67 73
  validates_presence_of :issue_from, :issue_to, :relation_type