N°3775 - Dashboard Definition with unknown class leads to an error

This commit is contained in:
Eric
2020-06-15 14:53:58 +02:00
parent 2705543efd
commit 7bee718a13

View File

@@ -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]))