Explorar o código

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4655 a333f486-631f-4898-b8df-5754b55c2be0
dflaven %!s(int64=8) %!d(string=hai) anos
pai
achega
8741689688
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      application/dashlet.class.inc.php

+ 1 - 1
application/dashlet.class.inc.php

@@ -530,7 +530,7 @@ abstract class DashletGroupBy extends Dashlet
 			$this->sGroupByAttCode = $sGroupBy;
 			$this->sGroupByAttCode = $sGroupBy;
 			$this->sFunction = null;
 			$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);
 			$sAttLabel = $this->oModelReflection->GetLabel($sClass, $this->sGroupByAttCode);
 			if (!is_null($this->sFunction))
 			if (!is_null($this->sFunction))