From bf27787b9b05263dffc1c0142f9bdd7d0ffbf0d9 Mon Sep 17 00:00:00 2001
From: Vinciane <vinciane.bizet@maarch.org>
Date: Fri, 8 Feb 2019 16:38:08 +0100
Subject: [PATCH] FIX #9349 debug

---
 src/app/entity/models/ListInstanceModelAbstract.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/entity/models/ListInstanceModelAbstract.php b/src/app/entity/models/ListInstanceModelAbstract.php
index 33f09ab7af5..ce4c5fe4c34 100755
--- a/src/app/entity/models/ListInstanceModelAbstract.php
+++ b/src/app/entity/models/ListInstanceModelAbstract.php
@@ -215,7 +215,7 @@ abstract class ListInstanceModelAbstract
             'select'    => empty($aArgs['select']) ? ['*'] : $aArgs['select'],
             'table'     => ['listinstance li', 'res_letterbox res', 'mlb_coll_ext mlb'],
             'left_join' => ['li.res_id = res.res_id', 'res.res_id = mlb.res_id'],
-            'where'     => ['res.dest_user = ?', 'li.difflist_type = ?', 'mlb.closing_date is null'],
+            'where'     => ['res.dest_user = ?', 'li.difflist_type = ?', 'mlb.closing_date is null', 'res.status not in (?)'],
             'data'      => [$aArgs['id'], 'entity_id', ['END', 'DEL']],
             'order_by'  => ['res_id ASC']
         ]);
-- 
GitLab