Skip to content
Snippets Groups Projects
Commit f9c539aa authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1414412 by pillarsdotnet, MrHaroldA, droplet: Fixed Skip #conjunction...

Issue #1414412 by pillarsdotnet, MrHaroldA, droplet: Fixed Skip #conjunction key in __clone() method of core/includes/database/query.inc.
parent b3bb147c
Loading
......@@ -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']);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment