fix controllers
This commit is contained in:
@@ -62,18 +62,18 @@ class RecordController extends Controller
|
|||||||
$limit = 30;
|
$limit = 30;
|
||||||
$records = [];
|
$records = [];
|
||||||
$graphArray = null;
|
$graphArray = null;
|
||||||
|
|
||||||
$graph = $this->query
|
$graph = $this->query
|
||||||
->filter($arguments)
|
->filter($arguments)
|
||||||
->limit($limit)
|
->limit($limit)
|
||||||
->status(explode(",", $arguments["status_in"]))
|
->status(explode(",", $arguments["status_in"]))
|
||||||
->skip($skip)
|
->skip($skip)
|
||||||
->sort($sort)
|
->sort($sort)
|
||||||
->childrenFields($schema->visible)
|
->childrenFields($schema?->visible ?? [])
|
||||||
->childrenDepth(1)
|
->childrenDepth(1)
|
||||||
->parentsDepth(0)
|
->parentsDepth(0)
|
||||||
->runWithCount();
|
->runWithCount();
|
||||||
|
|
||||||
|
|
||||||
$records = $graph->getRootRecords()->toArray();
|
$records = $graph->getRootRecords()->toArray();
|
||||||
|
|
||||||
|
|
||||||
@@ -102,7 +102,6 @@ class RecordController extends Controller
|
|||||||
}
|
}
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
$data["inModal"] = false;
|
$data["inModal"] = false;
|
||||||
return $this->svelte->render(
|
return $this->svelte->render(
|
||||||
layout: "channel",
|
layout: "channel",
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class Record implements JsonSerializable
|
|||||||
if(is_array($value)){
|
if(is_array($value)){
|
||||||
return $this->indexValues($value ?? []);
|
return $this->indexValues($value ?? []);
|
||||||
}
|
}
|
||||||
return (string)$value;
|
return str_replace(array("\r", "\n"), '', strip_tags((string)$value));
|
||||||
})
|
})
|
||||||
->values()->join(" ")." ". $this->_file?->originalName ?? ""));
|
->values()->join(" ")." ". $this->_file?->originalName ?? ""));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user