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.

Comments

a.dmitriiev created an issue. See original summary.

a.dmitriiev’s picture

StatusFileSize
new937 bytes
a.dmitriiev’s picture

Also attaching the patch for version 2.15

a.dmitriiev’s picture

And also for commerce 2.16

a.dmitriiev’s picture

Status: Active » Needs review
jsacksick’s picture

Version: 8.x-2.x-dev » 3.x-dev
Status: Needs review » Fixed

Committed the patch from #4 to 3.x.

  • jsacksick committed dc71d7eb on 3.x
    Issue #3113031 by a.dmitriiev: Content moderation field handler is not...
jsacksick’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.