reset groups for all assets in database instead of those listed in config file

This commit is contained in:
Graham Knop 2010-06-10 10:07:19 -05:00
parent 9b725c6d42
commit 0ddd109775

View file

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