From 092a3153f748679534bc83fd8047c9fe24be9903 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 18 Sep 2017 12:35:33 +0000 Subject: [PATCH] dblayeroo : bug in GROUP BY : return the child object group by display content instead of nothing git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3948 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayeroo.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dblayeroo.php b/dblayeroo.php index ad24446..0740993 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -2148,8 +2148,17 @@ class dblayeroo $this->sep.".".$o; } } + elseif ($this->displayColumn !== null) + { + foreach ($this->displayColumn as $name) + { + $localGroupBy[] = $this->displayConvert ($name, true); + } + } else - $localGroupBy = $this->displayGet (true); + { + // Nothing to return if there is no groupBy and nothing to display + } } else {