Skip to content

Commit

Permalink
Fix repeated build-nested-set warning (#1634) (#1682)
Browse files Browse the repository at this point in the history
Co-authored-by: phalene-bytes <[email protected]>
  • Loading branch information
phalene-bytes and phalene-bytes authored Oct 19, 2023
1 parent d796a1f commit 8ba9ccf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/task/propel/propelBuildNestedSetTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ 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!');
}

Expand Down Expand Up @@ -157,11 +164,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;
Expand Down

0 comments on commit 8ba9ccf

Please sign in to comment.