From a7e909e4aaee1d16713fcdac760ddd0a509cb6b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Fri, 24 Apr 2009 21:26:51 +0200 Subject: [PATCH] When moving child objects, don't show the entry we're moving from --- include/objectManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/objectManager.php b/include/objectManager.php index f49c757..be0b458 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -1011,6 +1011,9 @@ class ObjectManager if($oCandidate->objectGetState() != 'accepted') continue; + if($oCandidate->objectGetId() == $this->iId) + continue; + echo html_tr(array($oCandidate->objectMakeLink(), "makeUrl("moveChildren", $this->iId). "&iNewId=".$oCandidate->objectGetId()."\">Move here"), ($i % 2) ? "color0" : "color1");