Fix an infinite loop with getting Photo under an album that is not committed. Fixes bug #11235.
This commit is contained in:
parent
d45a58cf87
commit
8c0b73f2ec
3 changed files with 14 additions and 4 deletions
|
|
@ -80,7 +80,8 @@ $session->stow->delete('assetRevision');
|
|||
$versionTag->leaveTag;
|
||||
|
||||
$session->user({userId => $notFriend->userId});
|
||||
diag $album2->canEdit;
|
||||
note "If you get stuck here, then there is an infinite loop in getParent/getGallery";
|
||||
my $album2a = WebGUI::Asset->new($session, $photo2->getId);
|
||||
$session->user({userId => 1});
|
||||
|
||||
$versionTag->commit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue