I get this error when try to add views support to a product variations computed field
Error: Call to a member function getType() on null in commerce_price_form_views_ui_config_item_form_alter()
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3150380-2.patch | 903 bytes | facine |
Comments
Comment #2
facine commentedComment #3
amateescu commentedI think this could be related to #3138565: \Drupal\commerce\CommerceEntityViewsData::getViewsData() shouldn't try to generate views data for computed fields, could you try that patch instead and see if it helps?
Comment #4
facine commentedHi @amateescu, I've tried your patch but it doesn't fix this issue.
Comment #5
loze commentedPatch in #2 worked for me.
Comment #6
facine commentedComment #7
spokjeReproducible by: (Using latest Drupal Core
9.3.xand Commerce2.25.0)- Enable Content Moderation
- Enable Commerce Price
- Enable Workflow on Content Type (I've choosen `page`) here: /admin/config/workflow/workflows/manage/editorial
- Create node of type `page`
- Go to /admin/structure/views/view/moderated_content/edit/moderated_content
- Edit/Click Field
Content revision: Moderation state (Moderation state)- Ajax error occurs, watchdog shows one notice and one error:
and
Comment #9
jsacksick commentedCommitted! Thanks everyone!