It is not necessary to escape the field as cakephp will do it for us
parent
494be9c0ef
commit
54373e4e85
|
@ -82,7 +82,7 @@ class FilterComponent extends Component {
|
||||||
throw new Exception('Invalid operator: ' . $operator);
|
throw new Exception('Invalid operator: ' . $operator);
|
||||||
}
|
}
|
||||||
|
|
||||||
$lhs = '`' . $matches['field'] . '` ' . $operator;
|
$lhs = $matches['field'] . ' ' . $operator;
|
||||||
// If the named param contains an array, we want to turn it into an IN condition
|
// If the named param contains an array, we want to turn it into an IN condition
|
||||||
// Otherwise, we add it right into the $conditions array
|
// Otherwise, we add it right into the $conditions array
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
|
|
Loading…
Reference in New Issue