From d9ded37a8e5411ea2907980c997e77056b50981f Mon Sep 17 00:00:00 2001 From: Greg Hecquet Date: Fri, 13 May 2016 15:19:08 +0200 Subject: [PATCH] Like was causing multiple rows to be added to ajxp_index when changing directory pathname --- core/src/plugins/meta.syncable/class.ChangesTracker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/plugins/meta.syncable/class.ChangesTracker.php b/core/src/plugins/meta.syncable/class.ChangesTracker.php index 33a352eba1..5d6529e61a 100755 --- a/core/src/plugins/meta.syncable/class.ChangesTracker.php +++ b/core/src/plugins/meta.syncable/class.ChangesTracker.php @@ -565,7 +565,7 @@ public function updateNodesIndex($oldNode = null, $newNode = null, $copy = false dibi::query("UPDATE [ajxp_index] SET [node_path]=REPLACE( REPLACE(CONCAT('$$$',[node_path]), CONCAT('$$$', %s), CONCAT('$$$', %s)) , '$$$', '') ", SystemTextEncoding::toUTF8($oldNode->getPath()), SystemTextEncoding::toUTF8($newNode->getPath()) - , "WHERE [node_path] LIKE %like~ AND [repository_identifier] = %s", SystemTextEncoding::toUTF8($oldNode->getPath()), $repoId); + , "WHERE [node_path] = %s AND [repository_identifier] = %s", SystemTextEncoding::toUTF8($oldNode->getPath()), $repoId); try{ $rowCount = dibi::getAffectedRows(); if($rowCount === 0){