aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referentials_controller.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-12-18 13:36:29 +0100
committerTeddy Wing2017-12-18 13:36:29 +0100
commitdfd3f9ecb78974c4fe90a24c0e779bef87c38e09 (patch)
tree80e183c8578568173ad66748e622823e42868461 /app/controllers/referentials_controller.rb
parent5e6392d7f3c780797bf27ab6e6b5e3101f255cd5 (diff)
downloadchouette-core-dfd3f9ecb78974c4fe90a24c0e779bef87c38e09.tar.bz2
Referentials#validate: Update flash message
* Luc specified a new flash message string to use here. Update the old one with the new version. * Move the translation key to `notice.referentials.validate` because we have multiple "operation_in_progress" messages (this one for validation, and another for referential cloning/duplication). * Add a test to confirm that the flash message is set. Refs #5317
Diffstat (limited to 'app/controllers/referentials_controller.rb')
-rw-r--r--app/controllers/referentials_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb
index ee1236912..f97e2c211 100644
--- a/app/controllers/referentials_controller.rb
+++ b/app/controllers/referentials_controller.rb
@@ -60,7 +60,7 @@ class ReferentialsController < ChouetteController
def validate
ComplianceControlSetCopyWorker.perform_async(params[:compliance_control_set], params[:id])
- flash[:notice] = I18n.t("referentials.operation_in_progress")
+ flash[:notice] = I18n.t('notice.referentials.validate')
redirect_to(referential_path)
end