fix - Deleted assets reappear upon paste of parent
This commit is contained in:
parent
fa89e57bb6
commit
37c7f002ac
3 changed files with 17 additions and 5 deletions
|
|
@ -153,7 +153,7 @@ sub paste {
|
|||
my $pastedAsset = WebGUI::Asset->newByDynamicClass($self->session,$assetId);
|
||||
return 0 unless ($self->get("state") eq "published");
|
||||
if ($self->getId eq $pastedAsset->get("parentId") || $pastedAsset->setParent($self)) {
|
||||
$pastedAsset->publish;
|
||||
$pastedAsset->publish(['published']); # Paste only published assets
|
||||
$pastedAsset->updateHistory("pasted to parent ".$self->getId);
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue