We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5d4664 commit 71533cbCopy full SHA for 71533cb
lib/WebGUI/Asset.pm
@@ -1604,8 +1604,8 @@ sub getPrototypeList {
1604
my $userUiLevel = $session->user->get('uiLevel');
1605
my @assets;
1606
ID: foreach my $id (@prototypeIds) {
1607
- my $asset = WebGUI::Asset->newById($session, $id);
1608
- next ID unless defined $asset;
+ my $asset = eval { WebGUI::Asset->newById($session, $id); };
+ next ID if Exception::Class->caught();
1609
next ID unless $asset->get('isPrototype');
1610
next ID unless ($asset->get('status') eq 'approved' || $asset->get('tagId') eq $session->scratch->get("versionTag"));
1611
push @assets, $asset;
0 commit comments