- Issue created by @cboyden
- πΊπΈUnited States cboyden
The 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.
- π¦πΉAustria Grienauer Vienna
Thank you for the MR! we will check it out.
- π¦πΉAustria granik Vienna
@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.
-
granik β
committed 1f57a810 on 1.0.x
Issue #3488761 by cboyden: Node object without revision causes fatal...
-
granik β
committed 1f57a810 on 1.0.x
Automatically closed - issue fixed for 2 weeks with no activity.