Skip to content

Commit

Permalink
Fix #9736 - Elasticsearch still running repair in not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jack7anderson7 authored and clemente-raposo committed Aug 11, 2022
1 parent 96a10e7 commit 285c554
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/Administration/RepairESIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@
sugar_die($GLOBALS['app_strings']['ERR_NOT_ADMIN']);
}

if (empty($sugar_config['ElasticSearch']['enabled']) || isFalse($sugar_config['ElasticSearch']['enabled'])) {
if (empty($sugar_config['search']['ElasticSearch']['enabled']) || isFalse($sugar_config['search']['ElasticSearch']['enabled'])) {
echo $mod_strings['LBL_SETUP_ELASTICSEARCH'];
return;
}

echo $mod_strings['LBL_REPAIR_ELASTICSEARCH_INDEX_DONE'];
Expand Down

0 comments on commit 285c554

Please sign in to comment.