Closed (outdated)
Project:
Domain
Version:
7.x-3.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2012 at 05:58 UTC
Updated:
2 May 2025 at 12:54 UTC
Jump to comment: Most recent
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 commentedWill provide the patch shortly.
Comment #4
bluegeek9 commentedDrupal 7 in End of Life and no longer supported. We encourage you to upgrade to a supported version of Drupal. For more information, see https://www.drupal.org/upgrade.