From 4a080e248e2a611abd777d943870bce39dcba9d1 Mon Sep 17 00:00:00 2001 From: nstCactus Date: Sun, 19 Nov 2023 14:06:10 +0100 Subject: [PATCH] fix: import success flash message --- src/controllers/BaseController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/BaseController.php b/src/controllers/BaseController.php index 38b4f09..e2a66d9 100644 --- a/src/controllers/BaseController.php +++ b/src/controllers/BaseController.php @@ -334,7 +334,8 @@ public function actionImport(): ?Response $importErrors = FieldManager::$plugin->getImport()->import($fieldsToImport); if (!$importErrors) { - Craft::$app->getSession()->setNotice(Craft::t('field-manager', 'Imported successfully.')); + Craft::$app->getSession()->setSuccess(Craft::t('field-manager', 'Imported successfully.')); + return null; } else { Craft::$app->getSession()->setError(Craft::t('field-manager', 'Error importing fields.'));