Skip to content

Commit

Permalink
Merge pull request #99 from nstCactus/patch-1
Browse files Browse the repository at this point in the history
fix: import success flash message
  • Loading branch information
engram-design committed Nov 19, 2023
2 parents 54b798b + 4a080e2 commit 0434f4e
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 0434f4e

Please sign in to comment.