tiny bugfix for remote images in story
This commit is contained in:
parent
c515e65bed
commit
f06db47a02
1 changed files with 1 additions and 1 deletions
|
|
@ -461,7 +461,7 @@ sub getEditForm {
|
||||||
foreach my $photoIndex (1..$numberOfPhotos) {
|
foreach my $photoIndex (1..$numberOfPhotos) {
|
||||||
my $photo = $photoData->[$photoIndex-1];
|
my $photo = $photoData->[$photoIndex-1];
|
||||||
my $storage = WebGUI::Storage->get($session, $photo->{storageId});
|
my $storage = WebGUI::Storage->get($session, $photo->{storageId});
|
||||||
my $filename = $storage->getFiles->[0];
|
my $filename = $storage && $storage->getFiles->[0];
|
||||||
push @{ $var->{ photo_form_loop } }, {
|
push @{ $var->{ photo_form_loop } }, {
|
||||||
hasPhoto => $filename ? 1 : 0,
|
hasPhoto => $filename ? 1 : 0,
|
||||||
imgThumb => $filename ? $storage->getThumbnailUrl($filename) : '',
|
imgThumb => $filename ? $storage->getThumbnailUrl($filename) : '',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue