diff --git a/lib/task/propel/propelBuildNestedSetTask.class.php b/lib/task/propel/propelBuildNestedSetTask.class.php index 87f5f2b906..0b3eee3e50 100644 --- a/lib/task/propel/propelBuildNestedSetTask.class.php +++ b/lib/task/propel/propelBuildNestedSetTask.class.php @@ -95,6 +95,12 @@ public function execute($arguments = [], $options = []) $this->conn->commit(); } + if (!$options['index']) { + $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!'); } @@ -157,11 +163,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 +174,4 @@ protected function reindexLft(string $classname, int $id, int $lft) $classname, $id, ['lft' => $lft] ); } -} +} \ No newline at end of file