Suppress line item validation error for newly-created orders

This commit is contained in:
stveep
2017-04-08 23:37:07 +01:00
committed by Rob Harrington
parent 4699c654fc
commit 3b4ffe1f70

View File

@@ -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 }