From 4a7956a5226d576b9010be6afeeaa7b591acf3b6 Mon Sep 17 00:00:00 2001
From: Okhin <okhin@okhin.fr>
Date: Mon, 4 Feb 2019 16:40:09 +0100
Subject: [PATCH] Utilisation d'un OUTER JOIN et matching de l'adresse par le
 user_id

---
 app/controller/admin.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/controller/admin.php b/app/controller/admin.php
index 436df33..f93485e 100644
--- a/app/controller/admin.php
+++ b/app/controller/admin.php
@@ -563,8 +563,8 @@ class Admin extends Controller
             a.ville as ville,
             a.pays as pays
             FROM contreparties c
-            INNER JOIN users u ON c.user_id = u.id
-            INNER JOIN adresses a ON c.adresse_id = a.id
+            LEFT OUTER JOIN users u ON c.user_id = u.id
+            LEFT OUTER JOIN adresses a ON u.id = a.user_id
             WHERE 1=1 ";
         if ($texte) {
             $query .= " AND (c.id like '%".$texte."%'
-- 
GitLab