Skip to content

Commit ad36fb0

Browse files
committed
in case of observation not changed - show alert and redirect back with fallback
1 parent d2690d7 commit ad36fb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/admin/observation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def self.observations
5959
if resource.update(user_type: :reviewer, validation_status: "QC2 in progress")
6060
redirect_to new_admin_quality_control_path(quality_control: {reviewable_id: resource.id, reviewable_type: "Observation"}), notice: I18n.t("active_admin.observations_page.moved_qc_in_progress")
6161
else
62-
redirect_to collection_path, notice: I18n.t("active_admin.observations_page.not_modified")
62+
redirect_back_or_to collection_path, alert: I18n.t("active_admin.observations_page.not_modified")
6363
end
6464
end
6565

0 commit comments

Comments
 (0)