SyncForms: restore notifications on "no change"

This commit is contained in:
Thomas Gelf 2018-05-24 20:50:49 +02:00
parent 5a8c785b7c
commit 8f71ca034d
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class SyncCheckForm extends DirectorForm
$this->addHtml($html); $this->addHtml($html);
} elseif ($this->rule->get('sync_state') === 'in-sync') { } elseif ($this->rule->get('sync_state') === 'in-sync') {
$this->setSuccessMessage( $this->notifySuccess(
$this->translate('Nothing would change, this rule is still in sync') $this->translate('Nothing would change, this rule is still in sync')
); );
} else { } else {

View File

@ -35,7 +35,7 @@ class SyncRunForm extends DirectorForm
$this->translate(('Source has successfully been synchronized')) $this->translate(('Source has successfully been synchronized'))
); );
} elseif ($rule->get('sync_state') === 'in-sync') { } elseif ($rule->get('sync_state') === 'in-sync') {
$this->setSuccessMessage( $this->notifySuccess(
$this->translate('Nothing changed, rule is in sync') $this->translate('Nothing changed, rule is in sync')
); );
} else { } else {