Merge pull request #17769 from frederic34/patch-21
force reload css after activate/desactivate module
This commit is contained in:
commit
86a5eead5a
@ -8,6 +8,7 @@
|
|||||||
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
||||||
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||||
* Copyright (C) 2018 Nicolas ZABOURI <info@inovea-conseil.com>
|
* Copyright (C) 2018 Nicolas ZABOURI <info@inovea-conseil.com>
|
||||||
|
* Copyright (C) 2021 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -246,6 +247,7 @@ if ($action == 'install') {
|
|||||||
|
|
||||||
if ($action == 'set' && $user->admin) {
|
if ($action == 'set' && $user->admin) {
|
||||||
$resarray = activateModule($value);
|
$resarray = activateModule($value);
|
||||||
|
dolibarr_set_const($db, "MAIN_IHM_PARAMS_REV", (int) $conf->global->MAIN_IHM_PARAMS_REV + 1, 'chaine', 0, '', $conf->entity);
|
||||||
if (!empty($resarray['errors'])) {
|
if (!empty($resarray['errors'])) {
|
||||||
setEventMessages('', $resarray['errors'], 'errors');
|
setEventMessages('', $resarray['errors'], 'errors');
|
||||||
} else {
|
} else {
|
||||||
@ -269,6 +271,7 @@ if ($action == 'set' && $user->admin) {
|
|||||||
exit;
|
exit;
|
||||||
} elseif ($action == 'reset' && $user->admin && GETPOST('confirm') == 'yes') {
|
} elseif ($action == 'reset' && $user->admin && GETPOST('confirm') == 'yes') {
|
||||||
$result = unActivateModule($value);
|
$result = unActivateModule($value);
|
||||||
|
dolibarr_set_const($db, "MAIN_IHM_PARAMS_REV", (int) $conf->global->MAIN_IHM_PARAMS_REV + 1, 'chaine', 0, '', $conf->entity);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
setEventMessages($result, null, 'errors');
|
setEventMessages($result, null, 'errors');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user