Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entry block type conditions are not working #634

Closed
mihob opened this issue Aug 1, 2022 · 5 comments
Closed

Entry block type conditions are not working #634

mihob opened this issue Aug 1, 2022 · 5 comments

Comments

@mihob
Copy link

mihob commented Aug 1, 2022

Description

It looks like entry block conditions are not working. When selecting a specific entry type, the block is never displayed, not even for the selected entry type.

Steps to reproduce

  1. Choose an entry type as block condition
  2. Edit an entry with the chosen type
  3. The block with the condition is not visible

Other information

  • Neo version: 3.2.3
  • Craft version: Craft Pro 4.2.0.2
@ttempleton
Copy link
Contributor

It looks like this line:

return $condition->matchElement($owner);

Where $condition is the craft\elements\conditions\entries\EntryCondition with the entry type rule, and $owner is an entry where the entry type's UID matches the one recorded in the EntryCondition, is incorrectly returning false, which is a Craft bug.

@ttempleton ttempleton closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2022
@mihob
Copy link
Author

mihob commented Aug 1, 2022

Thanks for checking!

@angelokeirsebilck
Copy link

angelokeirsebilck commented Sep 10, 2022

Is this something they are planning to fix? Can't seem to find an open issue on craft.

@ttempleton
Copy link
Contributor

I assume they're not aware of it yet, but I'll work on a new issue to let them know.

@ttempleton
Copy link
Contributor

I've just opened the issue: craftcms/cms#11914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants