Project

General

Profile

Defect #5593 » 5593-r13306.diff

compatible with Redmine 2.5.2.devel.13306 - Go MAEDA, 2014-07-13 07:38

View differences:

app/helpers/workflows_helper.rb (working copy)
78 78
    w = workflows.select {|w| w.old_status_id == old_status.id && w.new_status_id == new_status.id}.size
79 79
    
80 80
    tag_name = "transitions[#{ old_status.id }][#{new_status.id}][#{name}]"
81
    if w == 0 || w == @roles.size * @trackers.size
81
    if old_status == new_status
82
      "-"
83
    elsif w == 0 || w == @roles.size * @trackers.size
82 84
      
83 85
      hidden_field_tag(tag_name, "0") +
84 86
      check_box_tag(tag_name, "1", w != 0,
(3-3/12)