From 1a51d2997b34ed236e6f13d2fe7435edfeb47991 Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Wed, 27 Jun 2018 12:11:33 +0000 Subject: [PATCH] FSN#53649 Performance: RES objecten en ruimtes er niet bij slepen als je groepeert op Artikel svn path=/Website/branches/v2017.3/; revision=38343 --- APPL/RES/res_list.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/APPL/RES/res_list.inc b/APPL/RES/res_list.inc index 56df24352d..b01e82a2bf 100644 --- a/APPL/RES/res_list.inc +++ b/APPL/RES/res_list.inc @@ -1621,14 +1621,14 @@ function res_list (pautfunction, params) 2); var sql_from_total = ""; - if (res_key || roomcat) + if (res_key || (roomcat && groupres != 7 && groupres != 8)) // Niet als je groepeert op artikel { sql_from_total += "/* Ruimtes */ " + sql_from_room_part; if (res_key || objcat || artcat) sql_from_total += " \nUNION ALL\n " } - if (res_key || objcat) + if (res_key || (objcat && groupres != 7 && groupres != 8)) // Niet als je groepeert op artikel { sql_from_total += "/* Objecten */ " + sql_from_obj_part; if (res_key || artcat)