From f9c577e08f4077cbd128872f03c6128ac80be9fb Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Wed, 4 Dec 2024 09:01:47 +0100 Subject: [PATCH] Fix(Promotions): Return 200 on benefits#edit In #5981, we accidentally set this render to a response code 422. Since it's really the initial render of the form, it should stay a 200. --- .../backend/solidus_promotions/admin/benefits_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/promotions/lib/controllers/backend/solidus_promotions/admin/benefits_controller.rb b/promotions/lib/controllers/backend/solidus_promotions/admin/benefits_controller.rb index 354a37ac8b..634fd93560 100644 --- a/promotions/lib/controllers/backend/solidus_promotions/admin/benefits_controller.rb +++ b/promotions/lib/controllers/backend/solidus_promotions/admin/benefits_controller.rb @@ -28,7 +28,7 @@ def edit if params.dig(:benefit, :calculator_type) @benefit.calculator_type = params[:benefit][:calculator_type] end - render layout: false, status: :unprocessable_entity + render layout: false end def update