Skip to content
Permalink
Browse files

quickArray returns 1 row, buildArray returns all rows

  • Loading branch information...
perlDreamer committed Jun 11, 2010
1 parent 4a8b88d commit 509b833d081cc39c4da2c48b5aee04b2322c66b8
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/WebGUI/Group.pm
@@ -1182,12 +1182,11 @@ sub resetGroupFields {
my $session = $self->session;
my $db = $session->db;
my $config = $session->config;
my $assets = $config->get('assets');
my $tableCache = {};

##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 ($db->quickArray('SELECT DISTINCT className FROM asset')) {
ASSET: foreach my $assetClass ($db->buildArray('SELECT DISTINCT className FROM asset')) {
my $className = eval { WebGUI::Asset->loadModule($assetClass); };
if (my $e = Exception::Class->caught) {
warn $e->cause;

0 comments on commit 509b833

Please sign in to comment.
You can’t perform that action at this time.