Fix an infinite loop with getting Photo under an album that is not committed. Fixes bug #11235.

This commit is contained in:
Colin Kuskie 2009-12-18 08:22:34 -08:00
parent d45a58cf87
commit 8c0b73f2ec
3 changed files with 14 additions and 4 deletions

View file

@ -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;