|
@@ -9942,11 +9942,8 @@ namespace Tqdev\PhpCrudApi\Record {
|
9942
|
9942
|
$conditions = new PathTree();
|
9943
|
9943
|
foreach ($params as $key => $filters) {
|
9944
|
9944
|
if (substr($key, 0, 6) == 'filter') {
|
9945
|
|
- $path = [];
|
9946
|
|
- $suffix = substr($key, 6);
|
9947
|
|
- if ($suffix) {
|
9948
|
|
- $path = str_split($suffix);
|
9949
|
|
- }
|
|
9945
|
+ preg_match_all('/\d+|\D+/', substr($key, 6), $matches);
|
|
9946
|
+ $path = $matches[0];
|
9950
|
9947
|
foreach ($filters as $filter) {
|
9951
|
9948
|
$condition = Condition::fromString($table, $filter);
|
9952
|
9949
|
if (($condition instanceof NoCondition) == false) {
|