mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-26 12:59:31 +00:00
Merge branch 'master' into settings-bundle
This commit is contained in:
commit
8750573724
191 changed files with 27745 additions and 12133 deletions
|
|
@ -122,7 +122,6 @@ class StatisticsHelper
|
|||
throw new InvalidArgumentException('No count for the given type available!');
|
||||
}
|
||||
|
||||
/** @var EntityRepository $repo */
|
||||
$repo = $this->em->getRepository($arr[$type]);
|
||||
|
||||
return $repo->count([]);
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ class TagFinder
|
|||
|
||||
$qb->select('p.tags')
|
||||
->from(Part::class, 'p')
|
||||
->where('p.tags LIKE ?1')
|
||||
->where('ILIKE(p.tags, ?1) = TRUE')
|
||||
->setMaxResults($options['query_limit'])
|
||||
//->orderBy('RAND()')
|
||||
->setParameter(1, '%'.$keyword.'%');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue