table params fix

This commit is contained in:
Kavalar 2024-08-29 12:07:54 +03:00
parent cf2cada74e
commit 5cb5ac839d
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
<?php
ini_set("display_errors", true);
error_reporting(-1);
require_once "../vendor/autoload.php";
use Itguild\Tables\Filter\InputDateFilter;

View File

@ -229,7 +229,7 @@ class ListJsonTable extends JasonTable
}
}
}
if (is_array($this->beforePrintCell[$filter])) {
if (isset($this->beforePrintCell[$filter]) and is_array($this->beforePrintCell[$filter])) {
if (isset($this->beforePrintCell[$filter]['filter'])) {
return true;
}
@ -268,9 +268,9 @@ class ListJsonTable extends JasonTable
if ($this->issetFilter($key)){
$filter = $this->getCurrentFilter($key);
$class = new $filter['class']([
'param' => $filter['param'],
'param' => $filter['param'] ?? '',
'name' => $key,
'value' => $filter['value']
'value' => $filter['value'] ?? '',
]);
$this->html .= $class->fetch();
}