Commit aa24384d authored by Alex Vandiver's avatar Alex Vandiver
Browse files

Merge branch '4.2/hide-empty-cfs-option' into 4.2-trunk

parents a908c1df 9ae058fa
......@@ -53,6 +53,7 @@
% while ( my $CustomField = $CustomFields->Next ) {
% my $Values = $Object->CustomFieldValues( $CustomField->Id );
% my $count = $Values->Count;
% next if $HideEmpty and not $count;
<tr id="CF-<%$CustomField->id%>-ShowRow">
<td class="label"><% $CustomField->Name %>:</td>
<td class="value">
......@@ -137,4 +138,5 @@ $Object => undef
$CustomFields => $Object->CustomFields
$Grouping => undef
$Table => 1
$HideEmpty => 0
</%ARGS>
......@@ -68,7 +68,7 @@
<div class="content">
<%PERL>
$m->comp('/Elements/ShowCustomFields', Object => $Transaction ) if $HasTxnCFs;
$m->comp('/Elements/ShowCustomFields', Object => $Transaction, HideEmpty => 1 ) if $HasTxnCFs;
$m->comp(
'ShowTransactionAttachments',
%ARGS,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment