table params fix
This commit is contained in:
parent
cf2cada74e
commit
5cb5ac839d
@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
ini_set("display_errors", true);
|
||||
error_reporting(-1);
|
||||
|
||||
require_once "../vendor/autoload.php";
|
||||
|
||||
use Itguild\Tables\Filter\InputDateFilter;
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user