|
@@ -67,8 +67,9 @@ |
|
|
block discarded – undo |
|
67
|
67
|
public function getSearchTerm() |
|
68
|
68
|
{ |
|
69
|
69
|
$term = $this->request->getQueryParam('q') ? $this->request->getQueryParam('q') : $this->request->getQueryParam('query'); |
|
70
|
|
- if (!$term && $this->rest) |
|
71
|
|
- $term = $this->request->getQueryParam('label'); |
|
|
70
|
+ if (!$term && $this->rest) { |
|
|
71
|
+ $term = $this->request->getQueryParam('label'); |
|
|
72
|
+ } |
|
72
|
73
|
$term = trim($term); // surrounding whitespace is not considered significant |
|
73
|
74
|
return strpos($term, "*") === false ? $term . "*" : $term; // default to prefix search |
|
74
|
75
|
} |
Please login to merge, or discard this patch.