| @@ 297-307 (lines=11) @@ | ||
| 294 | $queryParams['where'][] = [$col, $date, '<=']; |
|
| 295 | } |
|
| 296 | break; |
|
| 297 | case 'number': |
|
| 298 | if (empty($params['filters'][$col]['min']) && empty($params['filters'][$col]['max'])) { |
|
| 299 | continue; |
|
| 300 | } |
|
| 301 | if (!empty($params['filters'][$col]['min'])) { |
|
| 302 | $queryParams['where'][] = [$col, $params['filters'][$col]['min'], '>=']; |
|
| 303 | } |
|
| 304 | if (!empty($params['filters'][$col]['max'])) { |
|
| 305 | $queryParams['where'][] = [$col, $params['filters'][$col]['max'], '<=']; |
|
| 306 | } |
|
| 307 | break; |
|
| 308 | case 'email': |
|
| 309 | case 'text': |
|
| 310 | case 'textarea': |
|
| @@ 567-577 (lines=11) @@ | ||
| 564 | $queryParams['where'][] = [$col, $date, '<=']; |
|
| 565 | } |
|
| 566 | break; |
|
| 567 | case 'number': |
|
| 568 | if (empty($params['filters'][$col]['min']) && empty($params['filters'][$col]['max'])) { |
|
| 569 | continue; |
|
| 570 | } |
|
| 571 | if (!empty($params['filters'][$col]['min'])) { |
|
| 572 | $queryParams['where'][] = [$col, $params['filters'][$col]['min'], '>=']; |
|
| 573 | } |
|
| 574 | if (!empty($params['filters'][$col]['max'])) { |
|
| 575 | $queryParams['where'][] = [$col, $params['filters'][$col]['max'], '<=']; |
|
| 576 | } |
|
| 577 | break; |
|
| 578 | case 'email': |
|
| 579 | case 'text': |
|
| 580 | case 'textarea': |
|