Only log products that aren't defined in the Shelf. fix 10902
This commit is contained in:
parent
c7eacad029
commit
20c19425eb
2 changed files with 5 additions and 5 deletions
|
|
@ -11,6 +11,7 @@
|
|||
- fixed #10893: Code editor uses element-min.js
|
||||
- fixed #10891: Asset manager JSON feed has macros processed
|
||||
- fixed #10900: Matrix: Product Listing template
|
||||
- fixed #10902: Shelf asset is whiny
|
||||
|
||||
7.7.19
|
||||
- fixed #10838: Forwarded forum post email to new CS adds reply to original thread
|
||||
|
|
|
|||
|
|
@ -311,12 +311,11 @@ sub view {
|
|||
my @products = ();
|
||||
PRODUCT: foreach my $id (@productIds) {
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($session, $id);
|
||||
if (defined $asset && $asset->canView) {
|
||||
push @products, $asset;
|
||||
}
|
||||
else {
|
||||
if (!defined $asset) {
|
||||
$session->errorHandler->error(q|Couldn't instanciate SKU with assetId |.$id.q| on shelf with assetId |.$self->getId);
|
||||
}
|
||||
next PRODUCT;
|
||||
}
|
||||
push @products, $asset if $asset->canView;
|
||||
}
|
||||
|
||||
# create paginator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue