From 1599e10edb9697dc2f2225101cb4737e66e8650d Mon Sep 17 00:00:00 2001 From: "EMEA\\roesslerb" Date: Tue, 25 Apr 2017 14:02:12 +0200 Subject: [PATCH 1/2] https://jira.ez.no/browse/EZP-27298: search index not updated if main location changed --- kernel/classes/ezcontentobjecttreenodeoperations.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/classes/ezcontentobjecttreenodeoperations.php b/kernel/classes/ezcontentobjecttreenodeoperations.php index 78fe1973b9b..2244410f581 100644 --- a/kernel/classes/ezcontentobjecttreenodeoperations.php +++ b/kernel/classes/ezcontentobjecttreenodeoperations.php @@ -113,7 +113,9 @@ static function move( $nodeID, $newParentNodeID ) $nodeIDList = array( $nodeID ); eZSearch::removeNodeAssignment( $node->attribute( 'main_node_id' ), $newNode->attribute( 'main_node_id' ), $object->attribute( 'id' ), $nodeIDList ); eZSearch::addNodeAssignment( $newNode->attribute( 'main_node_id' ), $object->attribute( 'id' ), $nodeIDList, true ); - } + } else { + eZContentOperationCollection::registerSearchObject( $objectID, null, true ); + } $result = true; } From f1d42b6facfbef92fbc7114a4fc5e45a7d4f6565 Mon Sep 17 00:00:00 2001 From: "EMEA\\roesslerb" Date: Tue, 25 Apr 2017 14:29:29 +0200 Subject: [PATCH 2/2] https://jira.ez.no/browse/EZP-27298: search index not updated if main location changed --- kernel/classes/ezcontentobjecttreenodeoperations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/classes/ezcontentobjecttreenodeoperations.php b/kernel/classes/ezcontentobjecttreenodeoperations.php index 2244410f581..b5ee3aa30ad 100644 --- a/kernel/classes/ezcontentobjecttreenodeoperations.php +++ b/kernel/classes/ezcontentobjecttreenodeoperations.php @@ -114,8 +114,8 @@ static function move( $nodeID, $newParentNodeID ) eZSearch::removeNodeAssignment( $node->attribute( 'main_node_id' ), $newNode->attribute( 'main_node_id' ), $object->attribute( 'id' ), $nodeIDList ); eZSearch::addNodeAssignment( $newNode->attribute( 'main_node_id' ), $object->attribute( 'id' ), $nodeIDList, true ); } else { - eZContentOperationCollection::registerSearchObject( $objectID, null, true ); - } + eZContentOperationCollection::registerSearchObject( $objectID, null, true ); + } $result = true; }