[Rt-commit] r13151 - in rt/branches/3.8-TESTING: share/html/Search

sartak at bestpractical.com sartak at bestpractical.com
Tue Jun 10 20:48:27 EDT 2008


Author: sartak
Date: Tue Jun 10 20:48:22 2008
New Revision: 13151

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/share/html/Search/Bulk.html

Log:
 r62160 at onn:  sartak | 2008-06-10 20:47:25 -0400
 Don't display an empty CustomField edit box in Bulk Update


Modified: rt/branches/3.8-TESTING/share/html/Search/Bulk.html
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Search/Bulk.html	(original)
+++ rt/branches/3.8-TESTING/share/html/Search/Bulk.html	Tue Jun 10 20:48:22 2008
@@ -151,12 +151,15 @@
  </table>
 
 </&>
-<&|/Widgets/TitleBox, title => loc('Edit Custom Fields'), color => "#336633"&>
+
 <%perl>
 my $cfs = RT::CustomFields->new($session{'CurrentUser'});
 $cfs->LimitToGlobal();
 $cfs->LimitToQueue($_) for keys %$seen_queues;
 </%perl>
+
+% if ($cfs->Count) {
+<&|/Widgets/TitleBox, title => loc('Edit Custom Fields'), color => "#336633"&>
 <table>
 <tr>
 <th><&|/l&>Name</&></th>
@@ -189,6 +192,7 @@
 % }
 </table>
 </&>
+% }
 
 <&|/Widgets/TitleBox, title => loc('Edit Links'), color => "#336633"&>
 <em><&|/l&>Enter tickets or URIs to link tickets to. Separate multiple entries with spaces.</&></em><br />


More information about the Rt-commit mailing list