diff --git a/lib/task/propel/propelBuildNestedSetTask.class.php b/lib/task/propel/propelBuildNestedSetTask.class.php index 87f5f2b906..25c58690ef 100644 --- a/lib/task/propel/propelBuildNestedSetTask.class.php +++ b/lib/task/propel/propelBuildNestedSetTask.class.php @@ -95,6 +95,10 @@ public function execute($arguments = [], $options = []) $this->conn->commit(); } + $this->logSection( + 'propel', + 'Note: you will need to rebuild your search index for updates to show up properly in search results.' + ); $this->logSection('propel', 'Done!'); } @@ -119,8 +123,8 @@ protected function configure() $this->briefDescription = 'Build all nested set values.'; $this->detailedDescription = <<<'EOF' -Build nested set values. Optionally excluding tables (information_object, term, menu). -EOF; + Build nested set values. Optionally excluding tables (information_object, term, menu). + EOF; } protected function recursivelyUpdateTree($node, $classname) @@ -157,11 +161,6 @@ protected function recursivelyUpdateTree($node, $classname) if ($node['id'] != $classname::ROOT_ID) { $this->reindexLft($classname, $node['id'], $node['lft']); } - } else { - $this->logSection( - 'propel', - 'Note: you will need to rebuild your search index for updates to show up properly in search results.' - ); } return $width; @@ -173,4 +172,4 @@ protected function reindexLft(string $classname, int $id, int $lft) $classname, $id, ['lft' => $lft] ); } -} +} \ No newline at end of file