[prev in list] [next in list] [prev in thread] [next in thread]
List: rt-devel
Subject: Re: [Rt-devel] [fsck.com #12725] AutoReply: [patch] don't show
From: "Richard Hartmann" <richih.mailinglist () gmail ! com>
Date: 2008-10-27 14:55:32
Message-ID: 2d460de70810270755s5917a361h66d6590f212658b2 () mail ! gmail ! com
[Download RAW message or body]
I fail.
Thanks to Jerrad Pierce for making me aware of this.
See attached patch :p
Richard
["ShowCustomFields.patch" (text/x-patch)]
--- share/html/Elements/ShowCustomFields 2008-10-27 13:11:04.000000000 +0100
+++ local/html/Elements/ShowCustomFields 2008-10-27 13:16:14.000000000 +0100
@@ -49,12 +49,11 @@
% while ( my $CustomField = $CustomFields->Next ) {
% my $Values = $Object->CustomFieldValues( $CustomField->Id );
% my $count = $Values->Count;
+% next unless ($count);
<tr id="CF-<%$CustomField->id%>-ShowRow">
<td class="label"><% $CustomField->Name %>:</td>
<td class="value">
-% unless ( $count ) {
-<i><&|/l&>(no value)</&></i>
-% } elsif ( $count == 1 ) {
+% if ( $count == 1 ) {
% $print_value->( $CustomField, $Values->First );
% } else {
<ul>
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic