Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Checkout
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2019 at 18:19 UTC
Updated:
1 Aug 2019 at 11:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jsacksick commentedComment #3
bojanz commentedWe load the form display three times, in buildInlineForm(), validateInlineForm() and submitInlineForm().
Conceptually it feels unwise to remove the field only from one of them.
So let's introduce a loadFormDisplay() helper method and do it there.
This would also help people who want to override the used form display.
Comment #4
bojanz commentedHere we go.
Also used the opportunity to clean up a few asserts, by making $this->entity have the right typehint by default.
Comment #6
bojanz commentedCommitted.