From 8f71ca034dcca9b0cb075b64b59197ba9ac901d3 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 24 May 2018 20:50:49 +0200 Subject: [PATCH] SyncForms: restore notifications on "no change" --- application/forms/SyncCheckForm.php | 2 +- application/forms/SyncRunForm.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/forms/SyncCheckForm.php b/application/forms/SyncCheckForm.php index 63865889..28ab5e27 100644 --- a/application/forms/SyncCheckForm.php +++ b/application/forms/SyncCheckForm.php @@ -54,7 +54,7 @@ class SyncCheckForm extends DirectorForm $this->addHtml($html); } elseif ($this->rule->get('sync_state') === 'in-sync') { - $this->setSuccessMessage( + $this->notifySuccess( $this->translate('Nothing would change, this rule is still in sync') ); } else { diff --git a/application/forms/SyncRunForm.php b/application/forms/SyncRunForm.php index 91b6869c..864e1f82 100644 --- a/application/forms/SyncRunForm.php +++ b/application/forms/SyncRunForm.php @@ -35,7 +35,7 @@ class SyncRunForm extends DirectorForm $this->translate(('Source has successfully been synchronized')) ); } elseif ($rule->get('sync_state') === 'in-sync') { - $this->setSuccessMessage( + $this->notifySuccess( $this->translate('Nothing changed, rule is in sync') ); } else {