mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Compiler: allow optional zlists
SVN:trunk[1935]
This commit is contained in:
@@ -667,11 +667,14 @@ EOF;
|
||||
$sZlists = '';
|
||||
foreach ($aListRef as $sListCode => $sListTag)
|
||||
{
|
||||
$oListNode = $this->GetUniqueElement($oPresentation, $sListTag);
|
||||
$aAttributes = $this->GetNodeAsArrayOfItems($oListNode);
|
||||
|
||||
$sZAttributes = var_export($aAttributes, true);
|
||||
$sZlists .= " MetaModel::Init_SetZListItems('$sListCode', $sZAttributes);\n";
|
||||
$oListNode = $this->GetOptionalElement($oPresentation, $sListTag);
|
||||
if ($oListNode)
|
||||
{
|
||||
$aAttributes = $this->GetNodeAsArrayOfItems($oListNode);
|
||||
|
||||
$sZAttributes = var_export($aAttributes, true);
|
||||
$sZlists .= " MetaModel::Init_SetZListItems('$sListCode', $sZAttributes);\n";
|
||||
}
|
||||
}
|
||||
|
||||
// Methods
|
||||
|
||||
Reference in New Issue
Block a user