More _properties work, converted into proper methods.

This commit is contained in:
Colin Kuskie 2010-01-14 16:41:23 -08:00
parent 7ee588c38e
commit d47438d9ae
2 changed files with 6 additions and 6 deletions

View file

@ -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');