diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 043878c1b..e09906bd0 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -29,6 +29,7 @@ - fix: Photo EXIF data now gets cached correctly and sanitized for references (since JSON won't store them and they're of no use to us anyway). - fix: No current asset when ending up on Not Found page + - fix: Couldn't add single photos to gallery. 7.5.0 - rfe: Search Asset returns URLs diff --git a/lib/WebGUI/Asset/File/Image/Photo.pm b/lib/WebGUI/Asset/File/Image/Photo.pm index fcb17a4d3..8e31a297d 100644 --- a/lib/WebGUI/Asset/File/Image/Photo.pm +++ b/lib/WebGUI/Asset/File/Image/Photo.pm @@ -884,7 +884,12 @@ sub www_edit { return $self->session->privilege->locked unless $self->canEditIfLocked; # Prepare the template variables - my $var = $self->getTemplateVars; + # Cannot get all template vars since they require a storage location, doesn't work for + # creating new assets. + #my $var = $self->getTemplateVars; + my $var = { + url_addArchive => $self->getParent->getUrl('func=addArchive'), + }; # Generate the form if ($form->get("func") eq "add") {