From e6d48cfb7a002102e2e13a95bf72e9720b1793e1 Mon Sep 17 00:00:00 2001 From: Sadetdin EYILI Date: Tue, 5 Nov 2019 14:56:41 +0100 Subject: [PATCH] Fix Contact Information field in Marketing Lists --- src/Oro/Bundle/AccountBundle/Resources/config/oro/entity.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Oro/Bundle/AccountBundle/Resources/config/oro/entity.yml b/src/Oro/Bundle/AccountBundle/Resources/config/oro/entity.yml index 10e4546d0b2..912c229d375 100644 --- a/src/Oro/Bundle/AccountBundle/Resources/config/oro/entity.yml +++ b/src/Oro/Bundle/AccountBundle/Resources/config/oro/entity.yml @@ -12,8 +12,9 @@ oro_entity: contactInformation: query: select: - expr: defaultContact.email + expr: emails.email return_type: string join: left: - { join: entity.defaultContact, alias: defaultContact } + - { join: defaultContact.emails, alias: emails, conditionType: 'WITH', condition: 'emails.primary = true' }