summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2012-03-07 10:34:05 -0800
committerwebchick2012-03-07 10:34:16 -0800
commitf9c539aa210bdeeab9fef3714b73e75e58bd4b43 (patch)
tree719cf27148f5cb013603ec0dbf80bf86fa9e56ee
parentb3bb147c8c45011d58acfe34fd34fe46e0704cbc (diff)
Issue #1414412 by pillarsdotnet, MrHaroldA, droplet: Fixed Skip #conjunction key in __clone() method of core/includes/database/query.inc.
-rw-r--r--core/lib/Drupal/Core/Database/Query/Condition.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lib/Drupal/Core/Database/Query/Condition.php b/core/lib/Drupal/Core/Database/Query/Condition.php
index 9faabc6..f7d2a2f 100644
--- a/core/lib/Drupal/Core/Database/Query/Condition.php
+++ b/core/lib/Drupal/Core/Database/Query/Condition.php
@@ -260,7 +260,7 @@ class Condition implements ConditionInterface, Countable {
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']);
}
}