From 0ddd1097755086d32732657e0e6e88a336b5fa30 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 10 Jun 2010 10:07:19 -0500 Subject: [PATCH] reset groups for all assets in database instead of those listed in config file --- lib/WebGUI/Group.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Group.pm b/lib/WebGUI/Group.pm index 4e4b5548a..8ed1ff0b0 100644 --- a/lib/WebGUI/Group.pm +++ b/lib/WebGUI/Group.pm @@ -1597,7 +1597,7 @@ sub resetGroupFields { ##Note, I did assets in SQL instead of using the API because you would have to ##instanciate every version of the asset that used the group. This should be much quicker - ASSET: foreach my $asset (keys %{ $assets }) { + ASSET: foreach my $asset ( $db->quickArray('SELECT DISTINCT className FROM asset') ) { my $definition = WebGUI::Pluggable::instanciate($asset, 'definition', [$session]); SUBDEF: foreach my $subdef (@{ $definition }) { next SUBDEF if exists $tableCache->{$subdef->{tableName}};