mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-13 04:51:25 +01:00
Debug v23
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user