Move get_tables from Meta/Class into Meta/Asset. s/getTables/meta->get_tables/;
This commit is contained in:
parent
b72e3a1cd1
commit
ce3edcf743
8 changed files with 74 additions and 38 deletions
|
|
@ -21,9 +21,9 @@ use JSON;
|
|||
use HTML::Packer;
|
||||
|
||||
use WebGUI::Definition::Asset;
|
||||
attribute assetName => 'asset',
|
||||
attribute tableName => 'assetData',
|
||||
attribute icon => 'assets.gif',
|
||||
attribute assetName => 'asset';
|
||||
attribute tableName => 'assetData';
|
||||
attribute icon => 'assets.gif';
|
||||
property title => (
|
||||
tab => "properties",
|
||||
label => ['99','Asset'],
|
||||
|
|
@ -288,7 +288,7 @@ around BUILDARGS => sub {
|
|||
my $placeHolders = [$assetId];
|
||||
|
||||
# join all the tables
|
||||
foreach my $table ($className->getTables) {
|
||||
foreach my $table ($className->meta->get_tables) {
|
||||
$sql .= ",".$table;
|
||||
$where .= " and (asset.assetId=".$table.".assetId and ".$table.".revisionDate=".$revisionDate.")";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue