Update Keywords for WebGUI::Definition and exceptions.
This commit is contained in:
parent
e873f5e653
commit
f92f0d706a
1 changed files with 4 additions and 1 deletions
|
|
@ -128,7 +128,10 @@ sub findKeywords {
|
|||
$parentAsset = $options->{asset};
|
||||
}
|
||||
if ($options->{assetId}) {
|
||||
$parentAsset = WebGUI::Asset->new($self->session, $options->{assetId});
|
||||
$parentAsset = eval { WebGUI::Asset->newById($self->session, $options->{assetId}); };
|
||||
if (Exception::Class->caught()) {
|
||||
$self->session->log->error("Keywords: error instanciating parentAsset by assetId ". $options->{assetId}.": $@");
|
||||
}
|
||||
}
|
||||
if ($parentAsset) {
|
||||
$sql .= ' INNER JOIN asset USING (assetId)';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue