- Issue created by @cmarrufo
- Status changed to Needs review
10 months ago 3:23pm 11 March 2024
When updating the module to the latest version available, and launching the drush updb command, for some strange reason I am having this error.
After some digging, I realized that the unpublished_node_permissions_node_access_records function is calling Node's getOwnerId() function to obtain the user ID of the specific node, but there may be cases where it can come as NULL, such as you can see in the images.
As a solution, I propose to use NULL coalesce, so that in the event that a NULL value (unsupported value) comes, assign a default value.
Needs review
1.0
Code