mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
* Copyright (C) 2013 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2025 Joachim Kueter <git-jk@bloxera.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -250,7 +251,11 @@ if ($type == 'directory') {
|
||||
$parameters = array('modulepart' => $module);
|
||||
$reshook = $hookmanager->executeHooks('addSectionECMAuto', $parameters);
|
||||
if ($reshook > 0 && is_array($hookmanager->resArray) && count($hookmanager->resArray) > 0) {
|
||||
$automodules[] = $hookmanager->resArray['module'];
|
||||
if (is_array($hookmanager->resArray['module'])) {
|
||||
$automodules = array_merge($automodules, $hookmanager->resArray['module']);
|
||||
} else {
|
||||
$automodules[] = $hookmanager->resArray['module'];
|
||||
}
|
||||
}
|
||||
|
||||
// TODO change for multicompany sharing
|
||||
|
||||
Reference in New Issue
Block a user