Skip to content

Commit

Permalink
Merge branch 'craft-4' of https://github.com/verbb/field-manager into…
Browse files Browse the repository at this point in the history
… craft-4
  • Loading branch information
engram-design committed Jan 27, 2024
2 parents 5250de3 + 0434f4e commit 51fe2fb
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 51fe2fb

Please sign in to comment.