mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#11660 fixed error 500 in bulk operation module
This commit is contained in:
parent
960ede0e15
commit
4d58240ce3
@ -92,6 +92,10 @@ if ($update) {
|
|||||||
// If the option to select all of one group or module type is checked.
|
// If the option to select all of one group or module type is checked.
|
||||||
if ($force) {
|
if ($force) {
|
||||||
if ($force === 'type') {
|
if ($force === 'type') {
|
||||||
|
if (empty($modules_) === true) {
|
||||||
|
$modules_ = [];
|
||||||
|
}
|
||||||
|
|
||||||
$type_condition = '';
|
$type_condition = '';
|
||||||
if ($module_type != 0) {
|
if ($module_type != 0) {
|
||||||
$type_condition = "AND tam.id_tipo_modulo = $module_type";
|
$type_condition = "AND tam.id_tipo_modulo = $module_type";
|
||||||
@ -131,6 +135,7 @@ if ($update) {
|
|||||||
foreach ($module_name as $mod_name) {
|
foreach ($module_name as $mod_name) {
|
||||||
$result = process_manage_edit($mod_name['nombre'], $id_agent, $module_status, $modules_selection_mode);
|
$result = process_manage_edit($mod_name['nombre'], $id_agent, $module_status, $modules_selection_mode);
|
||||||
$count++;
|
$count++;
|
||||||
|
$modules_[] = $mod_name['nombre'];
|
||||||
$success += (int) $result;
|
$success += (int) $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user