Debug v23

This commit is contained in:
Laurent Destailleur
2025-11-12 15:03:31 +01:00
parent ad165e3712
commit 9e7fedfec5
10 changed files with 301 additions and 234 deletions

View File

@@ -518,8 +518,6 @@ $i = 0; // is a sequencer of modules found
$j = 0; // j is module number. Automatically affected if module number not defined.
$modNameLoaded = array();
$listOfOfficialModuleGroups = array('hr', 'technic', 'interface', 'technic', 'portal', 'financial', 'crm', 'base', 'products', 'srm', 'ecm', 'projects', 'other');
//if ($mode == 'common' || $mode == 'commonkanban') {
// Load $modules (required for the badge count)
foreach ($modulesdir as $dir) {
@@ -619,7 +617,7 @@ foreach ($modulesdir as $dir) {
}
$familyposition = (empty($familyinfo[$familykey]['position']) ? '0' : $familyinfo[$familykey]['position']);
if ($external && !in_array($familykey, $listOfOfficialModuleGroups)) {
if ($external && !in_array($familykey, array_keys($familyinfo))) {
// If module is extern and into a custom group (not into an official predefined one), it must appear at end (custom groups should not be before official groups).
if (is_numeric($familyposition)) {
$familyposition = sprintf("%03d", (int) $familyposition + 100);