[Rt-commit] r4839 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Fri Mar 24 21:31:05 EST 2006


Author: ruz
Date: Fri Mar 24 21:31:04 2006
New Revision: 4839

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/html/Elements/ListActions

Log:
 r2240 at cubic-pc:  cubic | 2006-03-25 05:07:20 +0300
 * callbacks could mark all records as skipped, we shouldn't show empty box


Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/ListActions
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/ListActions	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/ListActions	Fri Mar 24 21:31:04 2006
@@ -46,17 +46,27 @@
 <&| /Widgets/TitleBox, title => loc('Results') &>
   <ul class="action-results">
 % foreach my $action (@actions) {
-%     next unless $action;
-%     my $skip = 0;
-%     $m->comp('/Elements/Callback', _CallbackName => 'ModifyRow', row => \$action, skip => \$skip, %ARGS);
-%     next if $skip;
     <li><%$action%></li>
 % }
   </ul>
 </&>
 <%init>
- at actions = grep $_, @actions;
+ at actions =
+    grep $_,
+    grep {
+        my $skip;
+        $m->comp('/Elements/Callback',
+            _CallbackName => 'ModifyRow',
+            row => \$_,
+            skip => \$skip,
+            %ARGS
+        );
+        !$skip;
+    }
+    grep $_, @actions;
+
 return unless @actions;
+
 </%init>
 <%ARGS>
 @actions => undef


More information about the Rt-commit mailing list