Make getPrototypeList catch exceptions.
This commit is contained in:
parent
e5d4664a34
commit
71533cbba7
1 changed files with 2 additions and 2 deletions
|
|
@ -1604,8 +1604,8 @@ sub getPrototypeList {
|
|||
my $userUiLevel = $session->user->get('uiLevel');
|
||||
my @assets;
|
||||
ID: foreach my $id (@prototypeIds) {
|
||||
my $asset = WebGUI::Asset->newById($session, $id);
|
||||
next ID unless defined $asset;
|
||||
my $asset = eval { WebGUI::Asset->newById($session, $id); };
|
||||
next ID if Exception::Class->caught();
|
||||
next ID unless $asset->get('isPrototype');
|
||||
next ID unless ($asset->get('status') eq 'approved' || $asset->get('tagId') eq $session->scratch->get("versionTag"));
|
||||
push @assets, $asset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue