Skip to content

Commit

Permalink
Merge pull request #7020 from Dillon-Brown/issue-6998
Browse files Browse the repository at this point in the history
Fixed #6998 - cron.php fails because there is no check whether ElasticSearch is enabled
  • Loading branch information
samus-aran committed Mar 25, 2019
2 parents b059e9a + ca23067 commit 7ffc51a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Search/ElasticSearch/ElasticSearchHooks.php
Expand Up @@ -73,7 +73,9 @@ public function beanSaved(SugarBean $bean, $event, $arguments)
{
$this->action = 'index';

$this->reIndexSafe($bean);
if (ElasticSearchIndexer::isEnabled() !== false) {
$this->reIndexSafe($bean);
}
}

/**
Expand Down

0 comments on commit 7ffc51a

Please sign in to comment.