Skip to content

Commit 6df7dbc

Browse files
anytEugeneC
authored andcommitted
CRM-8117: Unusable autocomplete account fields
- dispatched PrepareResultItemEvent in CustomerSearchHandler as it was before adding grouping.
1 parent b5b9f5e commit 6df7dbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Oro/Bundle/SalesBundle/Autocomplete/CustomerSearchHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Oro\Bundle\SalesBundle\Provider\Customer\AccountAutocomplete\ChainAccountAutocompleteProvider;
1414
use Oro\Bundle\SalesBundle\Provider\Customer\ConfigProvider;
1515
use Oro\Bundle\SalesBundle\Provider\Customer\CustomerIconProviderInterface;
16+
use Oro\Bundle\SearchBundle\Event\PrepareResultItemEvent;
1617
use Oro\Bundle\SearchBundle\Query\Result\Item;
1718

1819
class CustomerSearchHandler extends ContextSearchHandler
@@ -376,8 +377,8 @@ public function convertItem($item)
376377
if (!empty($item['searchItem'])) {
377378
/** @var Item $searchItem */
378379
$searchItem = $item['searchItem'];
380+
$this->dispatcher->dispatch(PrepareResultItemEvent::EVENT_NAME, new PrepareResultItemEvent($searchItem));
379381

380-
/** @var Item $item */
381382
$text = $searchItem->getRecordTitle();
382383
$className = $searchItem->getEntityName();
383384
$identifier = $searchItem->getRecordId();

0 commit comments

Comments
 (0)