EVP error when select checkboxes widget on taxonomy condition

Created on 6 December 2022, almost 2 years ago
Updated 27 February 2023, over 1 year ago

Problem/Motivation

There is an error when i want access to the content type which have the entity_visibility_preview field.

Call to a member function getValue() on int in Drupal\entity_visibility_preview\Plugin\EntityVisibilityPreviewCondition\TaxonomyCondition->getTaxonomyForm() (line 488 of

Steps to reproduce

- Create a vocabulary
- Create a term and under term on this vocabulary
- Add the field entity_preview on a content type
- Enable Taxonomy condition and select the vocubulary
- Then go to Home > Administration > Configuration > Content authoring > Entity Visibility Preview and select Checkboxes widget and the vocabulary.
- Create a content and the site crash

Proposed resolution

Just change the way to get the depth on term in code.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Plugin: taxonomy

Created by

🇫🇷France bakop Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024