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 in where propal and order #29374
FIX - Search user in where propal and order #29374
Conversation
htdocs/commande/list.php
Outdated
@@ -868,8 +868,10 @@ | |||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."projet as p ON p.rowid = c.fk_projet"; | |||
$sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'user as u ON c.fk_user_author = u.rowid'; | |||
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"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We must abandon the use of join to make filter on data that is not part of the main table. We must instead have all the logic of the filter into the WHERE with IN (subselect)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We must abandon the use of join to make filter on data that is not part of the main table. We must instead have all the logic of the filter into the WHERE with IN (subselect)
@eldy it's done
FIX|Fix #[Search user in where]
[Long description]