Skip to content

Fixed: error on the find party screen. (OFBIZ-10824)#1215

Open
rehan3586 wants to merge 1 commit into
apache:release24.09from
rehan3586:OFBIZ-10824-release24.09
Open

Fixed: error on the find party screen. (OFBIZ-10824)#1215
rehan3586 wants to merge 1 commit into
apache:release24.09from
rehan3586:OFBIZ-10824-release24.09

Conversation

@rehan3586
Copy link
Copy Markdown

Fixed: error on the find party screen.
(OFBIZ-10824)

@rehan3586
Copy link
Copy Markdown
Author

When searching for a party using both Postal Address and Telecom Number criteria simultaneously, an SQL Exception is thrown: "Column name 'PC.PARTY_ID' is in more than one table in the FROM list."

This was caused by the PartyContactMech member entity being added to the DynamicViewEntity multiple times with the exact same alias ("PC") when dynamically building the query in the performFindParty service.

The fix is to use unique aliases for the PartyContactMech entity depending on the contact mech type being joined (e.g., "PCPA" for PostalAddress, "PCCM" for generic ContactMech, "PCTM" for TelecomNumber). This prevents alias collisions in the generated SQL statement when multiple contact mechanisms are searched at once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant