Logos, robots and some fixs

This commit is contained in:
Xbird
2022-08-08 17:19:06 +00:00
parent 9918c6bad9
commit 4f00470223
54 changed files with 235 additions and 59 deletions

View File

@@ -162,7 +162,10 @@ class DocumentRepositoriesExtension extends ServiceEntityRepository
if (null === $this->qbsearch) {
$this->qbsearch = $this ->createQueryBuilder("s")->where('s.title LIKE :searchkey');
$this->qbsearch->orWhere('s.id LIKE :searchkey');
if (is_numeric($search)) {
$this->qbsearch->orWhere('s.id = ' . $search);
}
$searchTime = str_replace('/', '-', $search);
if (($timestamp = strtotime($searchTime)) != false) {
$this->qbsearch->where('s.createdAt LIKE :searchkeydate')