fixed container edit problem
This commit is contained in:
parent
df7f09c722
commit
38c4573030
1 changed files with 2 additions and 3 deletions
|
|
@ -868,7 +868,7 @@ Returns a reference to the container asset. If this asset is a container it retu
|
|||
|
||||
sub getContainer {
|
||||
my $self = shift;
|
||||
if (WebGUI::Utility::isIn(ref $self, @{$session{config}{assetContainers}})) {
|
||||
if (WebGUI::Utility::isIn($self->get("className"), @{$session{config}{assetContainers}})) {
|
||||
return $self;
|
||||
} else {
|
||||
$session{asset} = $self->getParent;
|
||||
|
|
@ -2357,8 +2357,7 @@ sub www_editSave {
|
|||
$session{asset} = $object;
|
||||
return $object->$method();
|
||||
}
|
||||
$session{asset} = $object->getParent;
|
||||
return $object->getParent->www_view;
|
||||
return $self->getContainer->www_view;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue