Node Type / Entity bundle conditions evaluation is wrong when context is not provided

Created on 29 October 2016, about 8 years ago
Updated 20 December 2022, about 2 years ago

In my opinion the NodeType condition plugin does not evaluate correctly. The problem is, that the context (entity:node) is required. This should not be the case.

Because if I select a content type (for example "Article") and negate the condition which means the condition has to be true except the content type is equals "Article". The problem then is if there is an entity which has not a node/content type (for example a view from the Views module) the plugin evaluate to false although the condition is given that the (not existing) node is not of content type "Article" but because the context is missing it ends in false.

The patch attached below should fix this misbehavior.

🐛 Bug report
Status

Needs work

Version

10.1

Component
Entity 

Last updated about 8 hours ago

Created by

🇨🇭Switzerland TiMESPLiNTER

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

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