[Rt-commit] r15712 - in rt/3.8/trunk: etc/upgrade/3.8.2

sartak at bestpractical.com sartak at bestpractical.com
Tue Sep 2 22:50:18 EDT 2008


Author: sartak
Date: Tue Sep  2 22:50:18 2008
New Revision: 15712

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/etc/upgrade/3.8.2/content

Log:
 r70894 at onn:  sartak | 2008-09-02 22:50:07 -0400
 attrs->Named returns a list of attributes


Modified: rt/3.8/trunk/etc/upgrade/3.8.2/content
==============================================================================
--- rt/3.8/trunk/etc/upgrade/3.8.2/content	(original)
+++ rt/3.8/trunk/etc/upgrade/3.8.2/content	Tue Sep  2 22:50:18 2008
@@ -4,14 +4,15 @@
         my $sys = RT::System->new($RT::SystemUser);
 
         my $attrs = RT::Attributes->new( $RT::SystemUser );
-        $attrs->Named('Dashboard');
+        $attrs->UnLimit;
+        my @dashboards = $attrs->Named('Dashboard');
 
-        if ($attrs->Count == 0) {
+        if (@dashboards == 0) {
             $RT::Logger->debug("You have no dashboards. Skipped.");
             return 1;
         }
 
-        while (my $attr = $attrs->Next) {
+        for my $attr (@dashboards) {
             my $props = $attr->Content;
             if (exists $props->{Searches}) {
                 $props->{Portlets} = [ map {


More information about the Rt-commit mailing list