From 7bee718a135f5a9204458339e7f5372362037cf5 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 15 Jun 2020 14:53:58 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03775=20-=20Dashboard=20Definition=20with?= =?UTF-8?q?=20unknown=20class=20leads=20to=20an=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/dashlet.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/dashlet.class.inc.php b/application/dashlet.class.inc.php index 1e0e76f25..f43f232bb 100644 --- a/application/dashlet.class.inc.php +++ b/application/dashlet.class.inc.php @@ -1121,7 +1121,7 @@ abstract class DashletGroupBy extends Dashlet $this->sFunction = null; } - if (empty($this->aProperties['order_direction'])) + if ((!is_null($this->sClass)) && empty($this->aProperties['order_direction'])) { $aAttributeTypes = $this->oModelReflection->ListAttributes($this->sClass); if (isset($aAttributeTypes[$this->sGroupByAttCode]))