table params fix
This commit is contained in:
parent
cf2cada74e
commit
5cb5ac839d
@ -1,5 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
ini_set("display_errors", true);
|
||||||
|
error_reporting(-1);
|
||||||
|
|
||||||
require_once "../vendor/autoload.php";
|
require_once "../vendor/autoload.php";
|
||||||
|
|
||||||
use Itguild\Tables\Filter\InputDateFilter;
|
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'])) {
|
if (isset($this->beforePrintCell[$filter]['filter'])) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -268,9 +268,9 @@ class ListJsonTable extends JasonTable
|
|||||||
if ($this->issetFilter($key)){
|
if ($this->issetFilter($key)){
|
||||||
$filter = $this->getCurrentFilter($key);
|
$filter = $this->getCurrentFilter($key);
|
||||||
$class = new $filter['class']([
|
$class = new $filter['class']([
|
||||||
'param' => $filter['param'],
|
'param' => $filter['param'] ?? '',
|
||||||
'name' => $key,
|
'name' => $key,
|
||||||
'value' => $filter['value']
|
'value' => $filter['value'] ?? '',
|
||||||
]);
|
]);
|
||||||
$this->html .= $class->fetch();
|
$this->html .= $class->fetch();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user