Skip to content

Commit

Permalink
Fix check on whether config already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
herbdool committed Sep 20, 2023
1 parent 27aa47b commit b9ced4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions key.module
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,12 @@ function key_save_key($fields, $original_config = array(), $messages = TRUE) {
$t_args = array('%label' => $fields['label']);

switch ($save_config->isNew()) {
case MergeQuery::STATUS_INSERT:
case TRUE:
backdrop_set_message(t('The key %label has been added.', $t_args));
watchdog('key', 'Added key %label.', $t_args, WATCHDOG_NOTICE, l(t('view'), KEY_MENU_PATH . '/list'));
break;

case MergeQuery::STATUS_UPDATE:
case FALSE:
backdrop_set_message(t('The key %label has been updated.', $t_args));
watchdog('key', 'Updated key %label.', $t_args, WATCHDOG_NOTICE, l(t('view'), KEY_MENU_PATH . '/list'));
break;
Expand Down

0 comments on commit b9ced4f

Please sign in to comment.