diff options
author | David Rothstein <drothstein@gmail.com> | 2013-12-30 18:46:34 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-12-30 18:46:34 -0500 |
commit | a4a72dc277fc89eb36964c1509ad1b30121a013a (patch) | |
tree | b433075f02648add69b02d7c89b356ff8c61d557 /modules/node/node.module | |
parent | cb7127c514aee7e66659da3f20348db4c013a40c (diff) | |
download | brdo-a4a72dc277fc89eb36964c1509ad1b30121a013a.tar.gz brdo-a4a72dc277fc89eb36964c1509ad1b30121a013a.tar.bz2 |
Issue #1146244 by Dean Reilly, klausi, fago, firebird, David_Rothstein, aaronbauman, shenzhuxi, jaanhoinatski, themoep, citlacom: Node_access integrity constraint violation on module_invoke_all('node_' . $op, $node);.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 268076257..876d5ca49 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1179,10 +1179,8 @@ function node_save($node) { module_invoke_all('node_' . $op, $node); module_invoke_all('entity_' . $op, $node, 'node'); - // Update the node access table for this node. There's no need to delete - // existing records if the node is new. - $delete = $op == 'update'; - node_access_acquire_grants($node, $delete); + // Update the node access table for this node. + node_access_acquire_grants($node); // Clear internal properties. unset($node->is_new); |