mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 18:18:46 +02:00
Prepare (de)normalized data for Forms
This commit is contained in:
@@ -49,7 +49,6 @@ abstract class Dashlet
|
||||
protected $aProperties; // array of {property => value}
|
||||
protected $aCSSClasses;
|
||||
protected $sDashletType;
|
||||
private $aNormalizedProperties = null; // array of properties from serialized form
|
||||
|
||||
/**
|
||||
* Dashlet constructor.
|
||||
@@ -131,7 +130,6 @@ abstract class Dashlet
|
||||
$this->aProperties[$sProperty] = $this->PropertyFromDOMNode($oPropNode, $sProperty);
|
||||
}
|
||||
}
|
||||
$this->aNormalizedProperties = XMLNormalizer::GetInstance()->Denormalize($this->aProperties, get_class($this), 'Dashlet');
|
||||
$this->OnUpdate();
|
||||
}
|
||||
|
||||
@@ -510,7 +508,7 @@ EOF
|
||||
|
||||
public function GetNormalizedProperties(): ?array
|
||||
{
|
||||
return $this->aNormalizedProperties;
|
||||
return XMLNormalizer::GetInstance()->Denormalize($this->aProperties, get_class($this), 'Dashlet');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user