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 |
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.