Commit 4a7956a5 authored by Okhin's avatar Okhin

Utilisation d'un OUTER JOIN et matching de l'adresse par le user_id

parent ca56edcc
...@@ -563,8 +563,8 @@ class Admin extends Controller ...@@ -563,8 +563,8 @@ class Admin extends Controller
a.ville as ville, a.ville as ville,
a.pays as pays a.pays as pays
FROM contreparties c FROM contreparties c
INNER JOIN users u ON c.user_id = LEFT OUTER JOIN users u ON c.user_id =
INNER JOIN adresses a ON c.adresse_id = LEFT OUTER JOIN adresses a ON = a.user_id
WHERE 1=1 "; WHERE 1=1 ";
if ($texte) { if ($texte) {
$query .= " AND ( like '%".$texte."%' $query .= " AND ( like '%".$texte."%'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment