|
@@ -113,19 +113,19 @@ |
|
|
block discarded – undo |
|
113
|
113
|
// Initial call contains only the sections and need to extract the tabs |
|
114
|
114
|
if (is_array($structureElement)) { |
|
115
|
115
|
if (isset($structureElement['tab'])) { |
|
116
|
|
- $pathLabel = $this->tabMap[$structureElement['tab']]['label']; |
|
|
116
|
+ $pathLabel = $this->tabMap[$structureElement['tab']]['label']; |
|
117
|
117
|
} |
|
118
|
118
|
$structureElement = $this->configStructure->getElement($structureElement['id']); |
|
119
|
119
|
} |
|
120
|
120
|
|
|
121
|
|
- if (mb_stripos((string)$structureElement->getLabel(), $searchTerm) !== false |
|
122
|
|
- || mb_stripos((string)$structureElement->getComment(), $searchTerm) !== false |
|
|
121
|
+ if (mb_stripos((string) $structureElement->getLabel(), $searchTerm) !== false |
|
|
122
|
+ || mb_stripos((string) $structureElement->getComment(), $searchTerm) !== false |
|
123
|
123
|
) { |
|
124
|
124
|
$elementData = $structureElement->getData(); |
|
125
|
125
|
$this->results[] = [ |
|
126
|
126
|
'id' => trim($structureElement->getPath(), '/'), |
|
127
|
127
|
'type' => $elementData['_elementType'], |
|
128
|
|
- 'name' => trim($pathLabel . ' / ' . trim((string)$structureElement->getLabel()), '/'), |
|
|
128
|
+ 'name' => trim($pathLabel . ' / ' . trim((string) $structureElement->getLabel()), '/'), |
|
129
|
129
|
]; |
|
130
|
130
|
} |
|
131
|
131
|
|
Please login to merge, or discard this patch.