diff --git a/images/app/controllers/refinery/admin/images_controller.rb b/images/app/controllers/refinery/admin/images_controller.rb index 38857c4de3..03457920fb 100644 --- a/images/app/controllers/refinery/admin/images_controller.rb +++ b/images/app/controllers/refinery/admin/images_controller.rb @@ -125,7 +125,7 @@ def crop crop: render_to_string('/refinery/admin/images/_crop', layout: false, locals: { crop: cropped_image}) } else - flash.error = ::I18n.t('refinery.admin.images.form.crop_error') + flash.now[:error] = ::I18n.t('refinery.admin.images.form.crop_error') render json: { message: ::I18n.t('refinery.admin.images.form.crop_error') } end end