diff options
author | David Rothstein <drothstein@gmail.com> | 2015-05-04 22:11:53 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2015-05-04 22:11:53 -0400 |
commit | b85b146a170ebcaf33e6a4b1923c3be6cb3f9cc2 (patch) | |
tree | 55b38a45c245b11650cfe2388aef4682e6937263 /modules/translation | |
parent | 00e7efc01bcd6d5698bc2faabc1003bc5dd999b4 (diff) | |
download | brdo-b85b146a170ebcaf33e6a4b1923c3be6cb3f9cc2.tar.gz brdo-b85b146a170ebcaf33e6a4b1923c3be6cb3f9cc2.tar.bz2 |
Issue #2457743 by skein: translation_remove_from_set() runs unnecessary queries to fetch and update every single node with tnid 0
Diffstat (limited to 'modules/translation')
-rw-r--r-- | modules/translation/translation.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module index 53c4641e0..580d00073 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -428,7 +428,7 @@ function translation_node_delete($node) { * A node object. */ function translation_remove_from_set($node) { - if (isset($node->tnid)) { + if (isset($node->tnid) && $node->tnid) { $query = db_update('node') ->fields(array( 'tnid' => 0, |