Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrectly quoted fields when using the || operator.
Fixes #3404
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2574,7 +2574,11 @@ protected function _parseKey($model, $key, $value) { | |
$value = $this->value($value, $type); | ||
|
||
if (!$virtual && $key !== '?') { | ||
$isKey = (strpos($key, '(') !== false || strpos($key, ')') !== false); | ||
$isKey = ( | ||
strpos($key, '(') !== false || | ||
strpos($key, ')') !== false || | ||
strpos($key, '|') !== false | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
markstory
Author
Member
|
||
); | ||
$key = $isKey ? $this->_quoteFields($key) : $this->name($key); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wouldn't other operators like && etc still fail? or are they not supposed to used in this context?