Skip to content
Snippets Groups Projects
Commit fe1939ff authored by adci_contributor's avatar adci_contributor
Browse files

Issue #3342527 Post update script does not check if slack_link_names is already set

parent 94223599
Branches 8.x-1.x
No related tags found
No related merge requests found
......@@ -9,8 +9,9 @@
* Add new configuration item slack_link_names.
*/
function slack_post_update_slack_link_names() {
\Drupal::configFactory()
->getEditable('slack.settings')
->set('slack_link_names', TRUE)
->save(TRUE);
$config = \Drupal::configFactory()->getEditable('slack.settings');
if ($config->get('slack_link_names') === NULL) {
$config->set('slack_link_names', TRUE)->save(TRUE);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment