Skip to content

Commit

Permalink
fix: import success flash message
Browse files Browse the repository at this point in the history
  • Loading branch information
nstCactus authored Nov 19, 2023
1 parent 54b798b commit 4a080e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'));

Expand Down

0 comments on commit 4a080e2

Please sign in to comment.