Skip to content

Commit

Permalink
Apply unset-field when cfs do not have a count
Browse files Browse the repository at this point in the history
In converting a ternary evaluation of $count to an if,
523fabb missed a 'not' to correctly add unset-field to
cfs with no values, flipping the set/unset visibility logic.
  • Loading branch information
cbrandtbuffalo authored and sartak committed Jun 29, 2017
1 parent 3f9e376 commit bff32c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/html/Elements/ShowCustomFields
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
% 'custom-field',
% 'custom-field-'.$CustomField->id,
% );
% push @classes, 'unset-field' if $count;
% push @classes, 'unset-field' if not $count;
% $m->callback( CallbackName => 'ModifyFieldClasses', CustomField => $CustomField,
% Object => $Object, Classes => \@classes, Grouping => $Grouping );
<tr class="<% join(' ', @classes) %>" id="CF-<%$CustomField->id%>-ShowRow">
Expand Down

0 comments on commit bff32c5

Please sign in to comment.