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)
w = workflows.select {|w| w.old_status == old_status && w.new_status == new_status}.size
tag_name = "transitions[#{ old_status.try(:id) || 0 }][#{new_status.id}][#{name}]"
if w == 0 || w == @roles.size * @trackers.size
if old_status == new_status
"-"
elsif w == 0 || w == @roles.size * @trackers.size
hidden_field_tag(tag_name, "0", :id => nil) +
check_box_tag(tag_name, "1", w != 0,
:class => "old-status-#{old_status.try(:id) || 0} new-status-#{new_status.id}")
(4-4/12)