From d2e74af9bb3ac6312615306924745b41f2b8e3d1 Mon Sep 17 00:00:00 2001 From: Laurent Giovannoni <laurent.giovannoni@maarch.org> Date: Thu, 29 Jun 2017 12:06:52 +0200 Subject: [PATCH] FEAT #5628 --- apps/maarch_entreprise/class/class_lists_Abstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/maarch_entreprise/class/class_lists_Abstract.php b/apps/maarch_entreprise/class/class_lists_Abstract.php index bd6e10cb026..31fbad2f193 100644 --- a/apps/maarch_entreprise/class/class_lists_Abstract.php +++ b/apps/maarch_entreprise/class/class_lists_Abstract.php @@ -212,7 +212,7 @@ abstract class lists_Abstract extends Database "SELECT distinct(r.destination) as entity_id, count(distinct r.res_id)" . " as total, e.entity_label , e.short_label FROM " . $view. " r left join " . ENT_ENTITIES - . " e on e.entity_id = r.destination " .$where . " and entity_id <> ''" + . " e on e.entity_id = r.destination " .$where . " and (e.entity_id <> '' or e.entity_id IS NOT NULL)" . " group by e.entity_label, e.short_label, r.destination order by e.entity_label" ); while ($res = $stmt->fetchObject()) { -- GitLab