fix my doof
This commit is contained in:
parent
37c7f002ac
commit
67cc512c6c
2 changed files with 3 additions and 3 deletions
|
|
@ -1656,8 +1656,8 @@ sub publish {
|
|||
my $self = shift;
|
||||
my $statesToPublish = shift;
|
||||
|
||||
my $stateList = $self->session->db->quoteAndJoin($statesToPublish);
|
||||
my $where = "and state in (".$stateList.")" if $statesToPublish;
|
||||
my $stateList = $self->session->db->quoteAndJoin($statesToPublish) if $statesToPublish;
|
||||
my $where = "and state in (".$stateList.")" if $stateList;
|
||||
|
||||
my $assetIds = $self->session->db->buildArrayRef("select assetId from asset where lineage like ".$self->session->db->quote($self->get("lineage").'%')." $where");
|
||||
my $idList = $self->session->db->quoteAndJoin($assetIds);
|
||||
|
|
|
|||
|
|
@ -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(['published']); # Paste only published assets
|
||||
$pastedAsset->publish(['clipboard','clipboard-limbo']); # Paste only clipboard items
|
||||
$pastedAsset->updateHistory("pasted to parent ".$self->getId);
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue