Skip to content

Commit

Permalink
- Changed to Autocomplete for Customers to FullNameSearchHandler inst…
Browse files Browse the repository at this point in the history
…ead of the default searchhandler to include fullname
  • Loading branch information
24198 committed Feb 12, 2021
1 parent 468cb34 commit 3cede79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Marello\Bundle\CustomerBundle\Autocomplete;

use Marello\Bundle\CustomerBundle\Entity\Company;
use Oro\Bundle\FormBundle\Autocomplete\SearchHandler;
use Oro\Bundle\FormBundle\Autocomplete\FullNameSearchHandler;
use Doctrine\ORM\QueryBuilder;

class CompanyCustomerHandler extends SearchHandler
class CompanyCustomerHandler extends FullNameSearchHandler
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:

marello_customer.form.autocomplete.company_customer.search_handler:
class: 'Marello\Bundle\CustomerBundle\Autocomplete\CompanyCustomerHandler'
parent: oro_form.autocomplete.search_handler
parent: oro_form.autocomplete.full_name.search_handler
arguments:
- 'Marello\Bundle\CustomerBundle\Entity\Customer'
- ['namePrefix', 'firstName', 'middleName', 'lastName', 'nameSuffix']
Expand Down

0 comments on commit 3cede79

Please sign in to comment.