Merged in bugfix/HOR-3489 (pull request #5794)
HOR-3489 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -116,6 +116,9 @@ function getLoadTreeMenuData ()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//This function generates an xml, so it prevents the output of a badly formed xml
|
||||||
|
//by cleaning any content prior to this function with ob_clean
|
||||||
|
ob_clean();
|
||||||
echo $xml->asXML();
|
echo $xml->asXML();
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
@@ -177,42 +180,11 @@ function getLoadTreeMenuData ()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//This function generates an xml, so it prevents the output of a badly formed xml
|
||||||
|
//by cleaning any content prior to this function with ob_clean
|
||||||
|
ob_clean();
|
||||||
echo $xml->asXML();
|
echo $xml->asXML();
|
||||||
die;
|
die;
|
||||||
|
|
||||||
// Build xml document for all tree nodes
|
|
||||||
/*$xml = '<menu_cases>';
|
|
||||||
$i = 0;
|
|
||||||
foreach ($menuCases as $menu => $aMenuBlock) {
|
|
||||||
if (isset( $aMenuBlock['blockItems'] ) && sizeof( $aMenuBlock['blockItems'] ) > 0) {
|
|
||||||
$urlProperty = "";
|
|
||||||
if ((isset( $aMenuBlock['link'] )) && ($aMenuBlock['link'] != "")) {
|
|
||||||
$urlProperty = "url='" . $aMenuBlock['link'] . "'";
|
|
||||||
}
|
|
||||||
$xml .= '<menu_block blockTitle="' . $aMenuBlock['blockTitle'] . '" id="' . $menu . '" ' . $urlProperty . '>';
|
|
||||||
foreach ($aMenuBlock['blockItems'] as $id => $aMenu) {
|
|
||||||
$i ++;
|
|
||||||
if (isset( $aMenu['cases_count'] ) && $aMenu['cases_count'] !== '') {
|
|
||||||
$nofifier = "cases_count=\"{$aMenu['cases_count']}\" ";
|
|
||||||
} else {
|
|
||||||
$nofifier = '';
|
|
||||||
}
|
|
||||||
$xml .= '<option title="' . $aMenu['label'] . '" id="' . $id . '" ' . $nofifier . ' url="' . $aMenu['link'] . '">';
|
|
||||||
$xml .= '</option>';
|
|
||||||
}
|
|
||||||
$xml .= '</menu_block>';
|
|
||||||
} elseif (isset( $aMenuBlock['blockType'] ) && $aMenuBlock['blockType'] == "blockNestedTree") {
|
|
||||||
$xml .= '<menu_block blockTitle="' . $aMenuBlock['blockTitle'] . '" blockNestedTree = "' . $aMenuBlock['loaderurl'] . '" id="' . $menu . '" folderId="0">';
|
|
||||||
$xml .= '</menu_block>';
|
|
||||||
} elseif (isset( $aMenuBlock['blockType'] ) && $aMenuBlock['blockType'] == "blockHeaderNoChild") {
|
|
||||||
$xml .= '<menu_block blockTitle="' . $aMenuBlock['blockTitle'] . '" blockHeaderNoChild="blockHeaderNoChild" url = "' . $aMenuBlock['link'] . '" id="' . $menu . '">';
|
|
||||||
//$xml .= '<option title="" id="" ></option>';
|
|
||||||
$xml .= '</menu_block>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$xml .= '</menu_cases>';
|
|
||||||
|
|
||||||
print $xml;*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user