When moving child objects, don't show the entry we're moving from

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-04-24 21:26:51 +02:00
committed by Alexander Nicolaysen Sørnes
parent 5560eaaba3
commit a7e909e4aa

View File

@@ -1011,6 +1011,9 @@ class ObjectManager
if($oCandidate->objectGetState() != 'accepted') if($oCandidate->objectGetState() != 'accepted')
continue; continue;
if($oCandidate->objectGetId() == $this->iId)
continue;
echo html_tr(array($oCandidate->objectMakeLink(), echo html_tr(array($oCandidate->objectMakeLink(),
"<a href=\"".$this->makeUrl("moveChildren", $this->iId). "&amp;iNewId=".$oCandidate->objectGetId()."\">Move here</a>"), "<a href=\"".$this->makeUrl("moveChildren", $this->iId). "&amp;iNewId=".$oCandidate->objectGetId()."\">Move here</a>"),
($i % 2) ? "color0" : "color1"); ($i % 2) ? "color0" : "color1");