From f9c539aa210bdeeab9fef3714b73e75e58bd4b43 Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Wed, 7 Mar 2012 10:34:05 -0800 Subject: [PATCH] Issue #1414412 by pillarsdotnet, MrHaroldA, droplet: Fixed Skip #conjunction key in __clone() method of core/includes/database/query.inc. --- core/lib/Drupal/Core/Database/Query/Condition.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/Database/Query/Condition.php b/core/lib/Drupal/Core/Database/Query/Condition.php index 9faabc6fb3b5..f7d2a2f169bf 100644 --- a/core/lib/Drupal/Core/Database/Query/Condition.php +++ b/core/lib/Drupal/Core/Database/Query/Condition.php @@ -260,7 +260,7 @@ public function __toString() { function __clone() { $this->changed = TRUE; foreach ($this->conditions as $key => $condition) { - if ($condition['field'] instanceOf ConditionInterface) { + if ($key !== '#conjunction' && $condition['field'] instanceOf ConditionInterface) { $this->conditions[$key]['field'] = clone($condition['field']); } } -- GitLab