some quick fixes

This commit is contained in:
JT Smith 2005-01-05 21:40:58 +00:00
parent 93ca84a3d5
commit 22d3404b30
2 changed files with 3 additions and 2 deletions

View file

@ -19,6 +19,7 @@ use strict;
use WebGUI::Asset;
use WebGUI::HTTP;
use WebGUI::Session;
use WebGUI::SQL;
use WebGUI::Storage;
our @ISA = qw(WebGUI::Asset);
@ -186,7 +187,7 @@ Specify the namespace to build the list for.
sub getList {
my $class = shift;
my $namespace = shift;
return WebGUI::SQL->buildHashRef("select templateId,name from template where namespace=".quote($namespace)." and showInForms=1 order by name",WebGUI::SQL->getSlave);
return WebGUI::SQL->buildHashRef("select asset.assetId,asset.title from template left join asset on asset.assetId=template.assetId where template.namespace=".quote($namespace)." and template.showInForms=1 order by asset.title",WebGUI::SQL->getSlave);
}