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

ruz at bestpractical.com ruz at bestpractical.com
Sun Jan 14 23:32:24 EST 2007


Author: ruz
Date: Sun Jan 14 23:32:23 2007
New Revision: 6741

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

Log:
 r4353 at cubic-pc:  cubic | 2007-01-14 10:22:45 +0300
 * add $Class argument to CollectionAsTable/Header


Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/CollectionAsTable/Header
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/CollectionAsTable/Header	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/CollectionAsTable/Header	Sun Jan 14 23:32:23 2007
@@ -44,15 +44,16 @@
 %# 
 %# END BPS TAGGED BLOCK }}}
 <%ARGS>
- at Format => undef
+$Class        => 'RT__Ticket'
+ at Format       => undef
 $FormatString => undef
 $AllowSorting => undef
-$Order=>undef
-$BaseURL => undef
-$Query => undef
-$Rows => undef
-$Page => undef
-$maxitems => undef
+$Order        => undef
+$BaseURL      => undef
+$Query        => undef
+$Rows         => undef
+$Page         => undef
+$maxitems     => undef
 </%ARGS>
 <tr class="collection-as-table">
 <%perl>
@@ -83,7 +84,7 @@
 
     $title =~ s/^__(.*)__$/$1/o;
     my $tmp = $m->comp(
-        '/Elements/RT__Ticket/ColumnMap',
+        "/Elements/$Class/ColumnMap",
         Name => $title,
         Attr => 'title',
     );
@@ -110,7 +111,7 @@
            $AllowSorting
         && $col->{'attribute'}
         && $m->comp(
-            '/Elements/RT__Ticket/ColumnMap',
+            "/Elements/$Class/ColumnMap",
             Name => $col->{'attribute'},
             Attr => 'attribute'
         )
@@ -124,7 +125,7 @@
                 %generic_query_args,
                 OrderBy => (
                     $m->comp(
-                        '/Elements/RT__Ticket/ColumnMap',
+                        "/Elements/$Class/ColumnMap",
                         Name => $col->{'attribute'},
                         Attr => 'attribute'
                       )


More information about the Rt-commit mailing list