[Rt-commit] r5873 - in rt/branches/3.6-RELEASE: .
jesse at bestpractical.com
jesse at bestpractical.com
Wed Sep 6 15:09:07 EDT 2006
Author: jesse
Date: Wed Sep 6 15:09:06 2006
New Revision: 5873
Modified:
rt/branches/3.6-RELEASE/ (props changed)
rt/branches/3.6-RELEASE/html/Elements/RT__Ticket/ColumnMap
Log:
r27206 at pinglin: jesse | 2006-09-06 15:09:02 -0400
* Remove trailing '<br/>' from custom fields shown in ticket search results
Modified: rt/branches/3.6-RELEASE/html/Elements/RT__Ticket/ColumnMap
==============================================================================
--- rt/branches/3.6-RELEASE/html/Elements/RT__Ticket/ColumnMap (original)
+++ rt/branches/3.6-RELEASE/html/Elements/RT__Ticket/ColumnMap Wed Sep 6 15:09:06 2006
@@ -77,14 +77,16 @@
# For Image custom fields we also show a thumbnail here.
return sub {
my $values = $_[0]->CustomFieldValues($field);
- return map {
+ my @values = map {
(
($_->CustomFieldObj->Type eq 'Image')
? \($m->scomp( '/Elements/ShowCustomFieldImage', Object => $_ ))
: $_->Content
),
\'<br />',
- } @{ $values->ItemsArrayRef }
+ } @{ $values->ItemsArrayRef };
+ pop @values; # Remove that last <br />
+ return @values;
};
}
}
More information about the Rt-commit
mailing list