mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Suppress line item validation error for newly-created orders
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/ replace "code[erb-loud]:contains(\'error_messages\')"
|
||||
|
||||
-# Suppress errors when manually creating a new order - needs to proceed to edit page
|
||||
-# without having line items (which otherwise gives a validation error)
|
||||
- unless @order.created_at > 20.seconds.ago
|
||||
= render partial: "spree/shared/error_messages", :locals => { :target => @order }
|
||||
Reference in New Issue
Block a user