Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Customer
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2013 at 10:47 UTC
Updated:
17 Jul 2013 at 19:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
jsacksick commentedSimple fix attached
Comment #2
jsacksick commentedIn fact this issue raises multiple questions, do we need per-order-type checkout pane settings ? This will probably involve too many changes for the 1.x branch.
Comment #3
rszrama commentedI went for a simpler solution to just see if the field name isset() on the wrapper.
Commit: http://drupalcode.org/project/commerce.git/commitdiff/acf8e3f
Comment #5
bojanz commentedThat fix wasn't enough.
First of all, it doesn't abort the building of the form, it just makes it continue with an empty profile, which is wrong.
Second, we need the same check in validate and submit, otherwise that will fail too (I get a fatal error in the submit callback).
Fix copied from commerce_single_address.
Comment #6
bojanz commentedBetter patch.
Comment #7
rszrama commentedAhh, I see, your issues are particularly related to using alternate order types during checkout. Not a use case we typically have in mind, but I'll go make a note of supporting alternate checkout form configurations based on the order type in Commerce 2.x. Committed.