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}};