If the view has content moderation field (viewsfield moderation_state_field) in it commerce_price_form_views_ui_config_item_form_alter results in fatal error because the handler of the field doesn't have option 'field_name' or 'entity_field'.
I propose to check if that property is empty. The patch is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3113031-content-moderation-state-commerce-2.16-4.patch | 934 bytes | a.dmitriiev |
| #3 | 3113031-content-moderation-state-commerce-2.15-3.patch | 918 bytes | a.dmitriiev |
| #2 | 3113031-content-moderation-state-2.patch | 937 bytes | a.dmitriiev |
Comments
Comment #2
a.dmitriiev commentedComment #3
a.dmitriiev commentedAlso attaching the patch for version 2.15
Comment #4
a.dmitriiev commentedAnd also for commerce 2.16
Comment #5
a.dmitriiev commentedComment #6
jsacksick commentedCommitted the patch from #4 to 3.x.
Comment #8
jsacksick commentedActually adjusted the tweak further from the commit related to #3478603: Commerce promotion warning is preventing editing views field configuration for bundle fields.