Skip to content

Commit ec5f123

Browse files
committed
Fix(Promotions): Return 200 on benefits#edit
In solidusio#5981, we accidentally set this error render to a response code 422.
1 parent f7a1391 commit ec5f123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

promotions/lib/controllers/backend/solidus_promotions/admin/benefits_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def edit
2828
if params.dig(:benefit, :calculator_type)
2929
@benefit.calculator_type = params[:benefit][:calculator_type]
3030
end
31-
render layout: false, status: :unprocessable_entity
31+
render layout: false
3232
end
3333

3434
def update

0 commit comments

Comments
 (0)