Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions drupal/modules/lagoon/lagoon_search/lagoon_search.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ package: Lagoon
version: 8.x-1.1

type: module
core: 8.x
core_version_requirement: ^8 || ^9 || ^10
core_version_requirement: ^9 || ^10 || ^11

dependencies:
- search_api_solr:search_api_solr
9 changes: 8 additions & 1 deletion drupal/modules/lagoon/lagoon_search/lagoon_search.install
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ function lagoon_search_update_8101() {
$config_factory = \Drupal::configFactory();
$config = $config_factory->getEditable('search_api.server.lagoon_solr');

if (!$backend_config = $config->get('backend_config')) {
if ($config->isNew()) {
// The search_api.server.lagoon_solr config does not exist.
\Drupal::logger('lagoon_search')->notice('Skipping lagoon_search_update_8101, search_api.server.lagoon_solr does not exist');
return;
}

$backend_config = $config->get('backend_config');
if (empty($backend_config)) {
// This means that the Lagoon Solr configuration was not found so
// we have nothing to update.
\Drupal::logger('lagoon_search')->notice('Skipping lagoon_search_update_8101, nothing to update');
Expand Down