Closed (fixed)
Project:
Block Condition Published
Version:
1.0.0-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Nov 2024 at 20:16 UTC
Updated:
17 Jan 2025 at 13:59 UTC
Jump to comment: Most recent
Comments
Comment #3
cboyden commentedThe MR adds a simple check for a non-empty vid from the latest revision. If it's empty, the condition is treated the same as if the node object was empty.
Comment #4
grienauerThank you for the MR! we will check it out.
Comment #5
granik@cboyden thanks for your catch!
The problem can be, that if you skip the validation in your case, the module will not check if node is published or not. I guess there should be a check like
$node->isPublished(), instead just returning TRUE.p.s. this check has been added just because of drupal moderation states(more info here), so in case if the regular published/unpublished status is used, there is no need to check the revision state. The code just checks all possible user cases.
I'll try to work on this issue as soon as possible.
Comment #7
granikCommitted to 1.0.x branch.