N°2847 - Code refactor

This commit is contained in:
Eric
2020-11-25 15:24:27 +01:00
parent fc24746862
commit c5942a3ddd
10 changed files with 411 additions and 314 deletions

View File

@@ -1135,7 +1135,7 @@ HTML
public static function GetDisplaySetBlock(WebPage $oPage, DBObjectSet $oSet, $aExtraParams = array())
{
if (empty($aExtraParams['currentId'])) {
$iListId = $oPage->GetUniqueId(); // Works only if not in an Ajax page !!
$iListId = utils::GetUniqueId(); // Works only if not in an Ajax page !!
} else {
$iListId = $aExtraParams['currentId'];
}
@@ -1164,9 +1164,8 @@ HTML
*/
public static function GetDisplayExtendedSet(WebPage $oPage, CMDBObjectSet $oSet, $aExtraParams = array())
{
if (empty($aExtraParams['currentId']))
{
$iListId = $oPage->GetUniqueId(); // Works only if not in an Ajax page !!
if (empty($aExtraParams['currentId'])) {
$iListId = utils::GetUniqueId(); // Works only if not in an Ajax page !!
}
else
{
@@ -1782,9 +1781,8 @@ HTML
{
$iInputId = $iId;
}
else
{
$iInputId = $oPage->GetUniqueId();
else {
$iInputId = utils::GetUniqueId();
}
$sHTMLValue = '';