Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
best-practical
rt
Commits
aa24384d
Commit
aa24384d
authored
Jun 13, 2014
by
Alex Vandiver
Browse files
Merge branch '4.2/hide-empty-cfs-option' into 4.2-trunk
parents
a908c1df
9ae058fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
share/html/Elements/ShowCustomFields
View file @
aa24384d
...
...
@@ -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>
share/html/Elements/ShowTransaction
View file @
aa24384d
...
...
@@ -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,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment