Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX searchèuser filter expedition list #14290 #15900

Closed
wants to merge 3 commits into from

Conversation

atm-lena
Copy link
Contributor

@atm-lena atm-lena commented Jan 6, 2021

No description provided.

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Jan 6, 2021
if ($search_user > 0)
{
$sql .= ", ".MAIN_DB_PREFIX."element_contact as ec";
$sql .= ", ".MAIN_DB_PREFIX."c_type_contact as tc";
$sql .= " INNER JOIN ".MAIN_DB_PREFIX."element_contact as ec ON u.rowid = ec.element_id";
Copy link
Member

@eldy eldy Jan 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The table u is the table to get name of the user fk_user_author.
But the search on user is to find object linked with element_id so we need a link between
ec.element_id and e.rowid linked to id of object (but for shipment the id of object is not the shipment id but order id so we have to make a second linkt to element_element to find order id.
I submitted a fix.

eldy added a commit that referenced this pull request Jan 30, 2021
@eldy eldy closed this Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants