From 24c8e0db7e26ea40aecd67bda09de77abbba329e Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 10 Jun 2010 23:49:07 -0500 Subject: [PATCH] reset groups for asset classes listed in database instead of 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 4d0133e98..47f364e53 100644 --- a/lib/WebGUI/Group.pm +++ b/lib/WebGUI/Group.pm @@ -1187,7 +1187,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 $assetClass (keys %{ $assets }) { + ASSET: foreach my $assetClass ($db->quickArray('SELECT DISTINCT className FROM asset')) { my $className = eval { WebGUI::Asset->loadModule($assetClass); }; if (my $e = Exception::Class->caught) { warn $e->cause;