[Rt-commit] rt branch, 4.4/toggle-unset-fields, updated. rt-4.4.0-87-g244bf30
Shawn Moore
shawn at bestpractical.com
Mon May 2 15:58:41 EDT 2016
The branch, 4.4/toggle-unset-fields has been updated
via 244bf30a1e7dbd440b09612ed322d4bdac8b4e0f (commit)
from 2f9d771b186a04c203813bfa2a1a940b79f7b4c7 (commit)
Summary of changes:
share/html/Elements/ShowCustomFields | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 244bf30a1e7dbd440b09612ed322d4bdac8b4e0f
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Mon May 2 19:56:45 2016 +0000
Hide unset custom fields according to the user preference
This obsoletes RT::Extension::CustomField::HideEmptyValues
Fixes: I#31524
diff --git a/share/html/Elements/ShowCustomFields b/share/html/Elements/ShowCustomFields
index 1f15b69..07b828e 100644
--- a/share/html/Elements/ShowCustomFields
+++ b/share/html/Elements/ShowCustomFields
@@ -54,7 +54,7 @@
% my $Values = $Object->CustomFieldValues( $CustomField->Id );
% my $count = $Values->Count;
% next if $HideEmpty and not $count;
- <tr id="CF-<%$CustomField->id%>-ShowRow">
+ <tr class="custom-field custom-field-<% $CustomField->id%><% $count ? q{} : q{ unset-field}%>" id="CF-<%$CustomField->id%>-ShowRow">
<td class="label"><% $CustomField->Name %>:</td>
<td class="value<% $count ? '' : ' no-value' %>">
% unless ( $count ) {
-----------------------------------------------------------------------
More information about the rt-commit
mailing list