It is not necessary to escape the field as cakephp will do it for us

This commit is contained in:
Isaac Connor
2023-05-12 15:07:28 -04:00
parent 494be9c0ef
commit 54373e4e85

View File

@@ -82,7 +82,7 @@ class FilterComponent extends Component {
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
// Otherwise, we add it right into the $conditions array
if (is_array($value)) {