Merge pull request #18121 from OPEN-DSI/fix_00010
Fix hook constructCategory when several new categories is added by several modules
This commit is contained in:
commit
070a23f455
@ -263,7 +263,7 @@ class Categorie extends CommonObject
|
|||||||
$parameters = array();
|
$parameters = array();
|
||||||
$reshook = $hookmanager->executeHooks('constructCategory', $parameters, $this); // Note that $action and $object may have been modified by some hooks
|
$reshook = $hookmanager->executeHooks('constructCategory', $parameters, $this); // Note that $action and $object may have been modified by some hooks
|
||||||
if ($reshook >= 0 && !empty($hookmanager->resArray)) {
|
if ($reshook >= 0 && !empty($hookmanager->resArray)) {
|
||||||
$mapList = $hookmanager->resArray;
|
foreach ($hookmanager->resArray as $mapList) {
|
||||||
$mapId = $mapList['id'];
|
$mapId = $mapList['id'];
|
||||||
$mapCode = $mapList['code'];
|
$mapCode = $mapList['code'];
|
||||||
self::$MAP_ID_TO_CODE[$mapId] = $mapCode;
|
self::$MAP_ID_TO_CODE[$mapId] = $mapCode;
|
||||||
@ -275,6 +275,7 @@ class Categorie extends CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get map list
|
* Get map list
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user