forked from Wavyzz/dolibarr
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -11889,6 +11889,13 @@ function dolGetButtonAction($label, $text = '', $actionType = 'default', $url =
|
||||
|
||||
// If $url is an array, we must build a dropdown button
|
||||
if (is_array($url)) {
|
||||
// Loop on $url array to remove entries of disabled modules
|
||||
foreach ($url as $key => $subbutton) {
|
||||
if (isset($subbutton['enabled']) && empty($subbutton['enabled'])) {
|
||||
unset($url[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
$out = '';
|
||||
|
||||
if (count($url) > 1) {
|
||||
|
||||
Reference in New Issue
Block a user