fixes
This commit is contained in:
@@ -22,6 +22,9 @@ class TermsHandler extends Basehandler
|
||||
|
||||
public function handle(array $params): ResponseInterface
|
||||
{
|
||||
if (mb_strlen($_GET['string']) == 0)
|
||||
return new JsonApiResponse(200, ['status' => 'ok', 'terms' => []]);
|
||||
|
||||
$translation = $this->em->getTranslationRepository()->findOneBy(['id' => $_GET['translation']]);
|
||||
$this->termFacade->setDirection($translation->direction);
|
||||
$q = $this->termFacade->findByStringFull($_GET['string'], $translation->dictionary, '', mb_strlen($_GET['string']) <= 3 ? false : true);
|
||||
|
||||
Reference in New Issue
Block a user