N°686 - protect the edition of dashboards against a no-longer-existing class.

SVN:trunk[4655]
This commit is contained in:
Denis Flaven
2017-04-03 14:49:49 +00:00
parent 5adb0fd556
commit 15da430459

View File

@@ -530,7 +530,7 @@ abstract class DashletGroupBy extends Dashlet
$this->sGroupByAttCode = $sGroupBy;
$this->sFunction = null;
}
if ($this->oModelReflection->IsValidAttCode($sClass, $this->sGroupByAttCode))
if (($sClass != '') && $this->oModelReflection->IsValidAttCode($sClass, $this->sGroupByAttCode))
{
$sAttLabel = $this->oModelReflection->GetLabel($sClass, $this->sGroupByAttCode);
if (!is_null($this->sFunction))