Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Found that in two places empty delete queries are being executed while creating new content.
Attached the patch to prevent them.
Comment | File | Size | Author |
---|---|---|---|
domain-empty_query-issue.patch | 1.66 KB | mathankumarc |
Comments
Comment #1
agentrickardInteresting. The $nid > 0 is supposed to catch that.
A better solution would be to pass the entire $node object instead of setting an additional parameter.
Comment #2
agentrickardEven better, split domain_store_node_grants() into two functions, one for delete and leave the original as save only.
Comment #3
mathankumarc CreditAttribution: mathankumarc commentedWill provide the patch shortly.