More AssetLineage tests.
setParent does not clear the internally cached reference to the parent Asset. This makes persistent code get the wrong Asset reference.
This commit is contained in:
parent
9e4216c4a0
commit
a548341aea
2 changed files with 10 additions and 6 deletions
|
|
@ -674,8 +674,8 @@ sub setParent {
|
|||
$self->updateHistory("moved to parent ".$newParent->getId);
|
||||
$self->{_properties}{lineage} = $lineage;
|
||||
$self->purgeCache;
|
||||
$self->{_parent} = $newParent;
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue