Compare commits

..

3 Commits

Author SHA1 Message Date
f11d155606 fix filter 2024-12-27 14:55:06 +03:00
557fa1e22b fix filter 2024-12-27 14:50:28 +03:00
33d7069708 param => params fix 2024-12-27 12:28:49 +03:00
2 changed files with 3 additions and 3 deletions

View File

@ -5,12 +5,12 @@ namespace Itguild\Tables\Filter;
abstract class Filter abstract class Filter
{ {
public string $html = ''; public string $html = '';
public string|array $param; public string|array $params;
public string $name; public string $name;
public string $value; public string $value;
public function __construct(array $source) public function __construct(array $source)
{ {
$this->param = $source['param'] ?? ''; $this->params = $source['params'] ?? '';
$this->name = $source['name']; $this->name = $source['name'];
$this->value = $source['value'] ?? ''; $this->value = $source['value'] ?? '';
} }

View File

@ -280,7 +280,7 @@ class ListJsonTable extends JasonTable
$flag = true; $flag = true;
$filter = $this->getCurrentFilter($key); $filter = $this->getCurrentFilter($key);
$params = [ $params = [
'param' => $filter['param'] ?? '', 'params' => $filter['params'] ?? '',
'name' => $key, 'name' => $key,
'value' => $filter['value'] ?? '', 'value' => $filter['value'] ?? '',
]; ];