Skip to content

Issue with searching customers in admin #9

@xcom-magento

Description

@xcom-magento

Hello,

Our customer noticed an issue in the admin while searching customers.
For some customers there is the following error:

main.CRITICAL: TypeError: Commerce365\Customer\Model\Command\GetCustomerEmailById::execute(): Return value must be of type string, bool returned in /vendor/commerce365/module-customer/Model/Command/GetCustomerEmailById.php:24

We have fixed this by adding bool as accepted return type when no result is found. We think this is okay because in the parent method call (vendor/commerce365/module-customer/Ui/Component/Listing/Column/ParentCustomer.php::42) there is also a check when there is no email found.

Could you check this and update the module?
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions