Skip to content

Commit bce42bc

Browse files
committedJan 12, 2012
ticket 12318: asset error causes asset manager to fail
1 parent fabf59f commit bce42bc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎docs/changelog/7.x.x.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
7.10.24
2+
- fixed #12318: asset error causes asset manager to fail
23
- fixed #12308: error message used scalar as reference
34
- fixed #12256: Calendar Search doesn't show admin controls
45
- fixed #12268: Point of sale form missing from cart screen.

‎lib/WebGUI/Content/AssetManager.pm

+5
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ sub www_ajaxGetManagerPage {
309309
for my $assetId ( @{ $p->getPageData } ) {
310310
my $asset = WebGUI::Asset->newByDynamicClass( $session, $assetId );
311311

312+
unless( $asset ) {
313+
$session->log->error('www_ajaxGetManagerPage: assetId="'.$assetId.'" failed in newByDynamicClass');
314+
next;
315+
}
316+
312317
# Populate the required fields to fill in
313318
my %fields = (
314319
assetId => $asset->getId,

0 commit comments

Comments
 (0)
Please sign in to comment.