From 90f42062322f69f7f4fcae899af7c2b7debee4a4 Mon Sep 17 00:00:00 2001 From: pkamps Date: Tue, 4 Dec 2018 18:35:57 +0100 Subject: [PATCH] eZContentObject::removeThis() does not remove assigned nodes (#126) --- kernel/classes/ezcontentobject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/classes/ezcontentobject.php b/kernel/classes/ezcontentobject.php index 61082367654..f085230c3a0 100644 --- a/kernel/classes/ezcontentobject.php +++ b/kernel/classes/ezcontentobject.php @@ -1985,7 +1985,7 @@ function removeThis( $nodeID = null ) { $db = eZDB::instance(); $db->begin(); - foreach ( $additionalNodes as $additionalNode ) + foreach ( $nodes as $additionalNode ) { if ( $additionalNode->attribute( 'node_id' ) != $node->attribute( 'main_node_id' ) ) {