Skip to content

Commit

Permalink
SimpleSuggestions: Don't show quotes in default suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Oct 13, 2022
1 parent 0de3900 commit d13b349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Control/SimpleSuggestions.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,15 @@ public function forRequest(ServerRequestInterface $request): self
return $this;
}

$search = $requestData['term']['search'];
$search = str_replace(['"', "'"], '', $requestData['term']['search']);
$label = $requestData['term']['label'];
$exclude = $requestData['exclude'];

$this->setSearchTerm($search);

$this->setData($this->fetchSuggestions($label, $exclude));

if ($search) {
if (! empty($search)) {
$this->setDefault($search);
}

Expand Down

0 comments on commit d13b349

Please sign in to comment.