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:
Colin Kuskie 2007-04-13 21:01:15 +00:00
parent 9e4216c4a0
commit a548341aea
2 changed files with 10 additions and 6 deletions

View file

@ -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;
}
#-------------------------------------------------------------------