Project

General

Profile

Defect #5593 » 5593-r17212.diff

Patch for Redmine 3.4.4.devel.17212 - Go MAEDA, 2018-02-25 08:04

View differences:

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