Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Get indexation fix from develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 10, 2016
1 parent 82ad2a9 commit 4256e95
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/src/plugins/meta.syncable/class.ChangesTracker.php
Expand Up @@ -569,8 +569,11 @@ public function updateNodesIndex($oldNode = null, $newNode = null, $copy = false
$this->logDebug('UPDATE FOLDER PATH', $newNode->getUrl());
dibi::query("UPDATE [ajxp_index] SET [node_path]=REPLACE( REPLACE(CONCAT('$$$',[node_path]), CONCAT('$$$', %s), CONCAT('$$$', %s)) , '$$$', '') ",
TextEncoder::toUTF8($oldNode->getPath()),
TextEncoder::toUTF8($newNode->getPath())
, "WHERE [node_path] LIKE %like~ AND [repository_identifier] = %s", TextEncoder::toUTF8($oldNode->getPath()), $repoId);
TextEncoder::toUTF8($newNode->getPath()),
"WHERE ([node_path] = %s OR [node_path] LIKE %like~) AND [repository_identifier] = %s",
TextEncoder::toUTF8($oldNode->getPath()),
rtrim(TextEncoder::toUTF8($oldNode->getPath()), '/') . '/',
$repoId);
try{
$rowCount = dibi::getAffectedRows();
if($rowCount === 0){
Expand Down

0 comments on commit 4256e95

Please sign in to comment.