Issue #3197581 by sidharth_soman: Cache needs to be cleared after setting MapBox API key for the first time

This commit is contained in:
Sidharth Soman 2023-11-01 09:21:27 -04:00 committed by Michael Stenta
parent d6e8718086
commit 158611e4c5
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Issue #3357679: Allow material quantities to reference multiple material types](https://www.drupal.org/project/farm/issues/3357679)
- [Issue #3330490: Update Drupal core to 10.x in farmOS](https://www.drupal.org/project/farm/issues/3330490)
### Fixed
- [Issue #3197581: Cache needs to be cleared after setting MapBox API key for the first time](https://www.drupal.org/project/farm/issues/3197581)
## [2.2.2] 2023-10-25
### Changed

View File

@ -57,6 +57,7 @@ class MapboxSettingsForm extends ConfigFormbase {
$this->configFactory->getEditable(static::SETTINGS)
->set('api_key', $form_state->getValue('api_key'))
->save();
drupal_flush_all_caches();
parent::submitForm($form, $form_state);
}