-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error: Undefined constant "COMMENT_NODE_OPEN" when Comments are disabled #173
Comments
…comment.info.inc
@laryn, @hosef, PR provided and ready for testing and review. I basically removed the Removing the property definition from node.info.inc prevents the fatal error that was reported above when the |
@argiepiano Tested and reviewed. LGTM so I will go ahead and merge. |
We found this issue today while working with the Views Bulk Operations module. This also fixed our issue: Will this be added to a new release soon? Thanks! |
Originally reported on Zulip.
In certain conditions, for example, when using Views Bulk Operations, this error is thrown when:
The issue started with #149. (Mea culpa). The node property info
'comment'
should not be added at this point. In fact, that property info is correctly added in the functionentity_plus_metadata_comment_entity_property_info_alter()
in the filecomment.info.inc
, which runs only ifcomment
is enabled.#149 was added as an attempt to allow for the three states of that property. In D7, this was a boolean (on/off). Now, in Backdrop, there are three possible states:
COMMENT_NODE_OPEN
,COMMENT_NODE_CLOSED
andCOMMENT_NODE_HIDDEN
.While the addition of these 3 states is correct, those should be have been as an
option list
callback inentity_plus_metadata_comment_entity_property_info_alter()
.PR submitted in a moment.
The text was updated successfully, but these errors were encountered: