More _properties work, converted into proper methods.
This commit is contained in:
parent
7ee588c38e
commit
d47438d9ae
2 changed files with 6 additions and 6 deletions
|
|
@ -66,7 +66,7 @@ sub cut {
|
|||
$session->db->write("update asset set state='clipboard-limbo' where lineage like ? and state='published'",[$self->get("lineage").'%']);
|
||||
$session->db->write("update asset set state='clipboard', stateChangedBy=?, stateChanged=? where assetId=?", [$session->user->userId, $session->datetime->time(), $self->getId]);
|
||||
$session->db->commit;
|
||||
$self->{_properties}{state} = "clipboard";
|
||||
$self->state("clipboard");
|
||||
foreach my $asset ($self, @{$self->getLineage(['descendants'], {returnObjects => 1})}) {
|
||||
$asset->purgeCache;
|
||||
$asset->updateHistory('cut');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue