Skip to content

Commit 4d17791

Browse files
Merge pull request #58 from Flowpack/bugfix/accept-empty-term
BUGFIX: Prevent exception when term is empty
2 parents a1650eb + a80d655 commit 4d17791

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Controller/SuggestController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function initializeObject()
6262
* @return void
6363
* @throws QueryBuildingException
6464
*/
65-
public function indexAction($term, $contextNodeIdentifier, $dimensionCombination = null)
65+
public function indexAction($term = '', $contextNodeIdentifier, $dimensionCombination = null)
6666
{
6767
if ($this->elasticSearchClient === null) {
6868
throw new \RuntimeException('The SuggestController needs an ElasticSearchClient, it seems you run without the flowpack/elasticsearch-contentrepositoryadaptor package, though.', 1487189823);

0 commit comments

Comments
 (0)