Change www_delete and www_cut to use either the container, or the parent

as the asset to return the user to after their actions.
Subclass getContainer in the Story, and alias it to getArchive.
Fixes bug 10657.
This commit is contained in:
Colin Kuskie 2009-08-14 19:43:14 +00:00
parent 194e98d937
commit 92815bb75d
5 changed files with 37 additions and 7 deletions

View file

@ -81,7 +81,7 @@ WebGUI::Test->storagesToDelete($storage1, $storage2);
#
############################################################
my $tests = 44;
my $tests = 45;
plan tests => 1
+ $tests
+ $canEditMaker->plan
@ -148,6 +148,14 @@ $story->requestAutoCommit;
is($story->getArchive->getId, $archive->getId, 'getArchive gets the parent archive for the Story');
############################################################
#
# getContainer
#
############################################################
is($story->getContainer->getId, $archive->getId, 'getContainer gets the parent archive for the Story');
############################################################
#
# canEdit