[Rt-commit] r4394 - in rt/branches/3.5-TESTING: .

kevinr at bestpractical.com kevinr at bestpractical.com
Tue Jan 17 00:48:18 EST 2006


Author: kevinr
Date: Tue Jan 17 00:48:17 2006
New Revision: 4394

Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/html/Elements/EditCustomFieldSelect

Log:
 r10382 at SAD-GIRL-IN-SNOW:  kevinr | 2006-01-17 00:28:53 -0500
 * Applied the bits of Jim Meyer's 'fixes' patch to 
 Elements/EditCustomFieldSelect which seemed still relevant


Modified: rt/branches/3.5-TESTING/html/Elements/EditCustomFieldSelect
==============================================================================
--- rt/branches/3.5-TESTING/html/Elements/EditCustomFieldSelect	(original)
+++ rt/branches/3.5-TESTING/html/Elements/EditCustomFieldSelect	Tue Jan 17 00:48:17 2006
@@ -87,7 +87,7 @@
 % while ($CFVs and my $value = $CFVs->Next ) {
 %     my $category = $value->Category;
 %     if (1) { # length $category) {
-%         my $level = (split(/:/, $category))[0];
+%         my $level = (split(/:/, $category || ''))[0];
 %         while (@levels) {
 %             if ($levels[-1] eq $level) {
 %                 undef $level;
@@ -99,7 +99,7 @@
 %                 last;
 %             }
 %         }
-%         if (length $level) {
+%         if ($level) {
 %             push @$CategoryRef, [0+ at levels, $level];
         <optgroup style="padding-left: <% @levels/2 %>em" label="<%$category%>">
 %             push @levels, $level;


More information about the Rt-commit mailing list