This commit is contained in:
Kavalar 2024-07-15 15:54:11 +03:00
parent 338555d62c
commit f9fc6b9f17

View File

@ -25,7 +25,8 @@ class ListJsonTable
public function __construct(string $json) public function __construct(string $json)
{ {
$this->beforePrintCell = false; $this->beforePrintCell = false;
$this->beforePrint = function (){}; $this->beforePrint = function () {
};
$this->json = $json; $this->json = $json;
$this->data = json_decode($this->json, true); $this->data = json_decode($this->json, true);
$this->baseUrl = $this->data['meta']['baseUrl'] ?? ''; $this->baseUrl = $this->data['meta']['baseUrl'] ?? '';
@ -122,12 +123,11 @@ class ListJsonTable
private function is_fillable($column): bool private function is_fillable($column): bool
{ {
if (isset($this->data['meta']['fillable'])){ if (isset($this->data['meta']['fillable'])) {
if (in_array($column, $this->data['meta']['fillable'])) { if (in_array($column, $this->data['meta']['fillable'])) {
return true; return true;
} }
} } else {
else{
return true; return true;
} }