From dc1f1bb8c0fab2356d507f40d4f0e76310d7a98f Mon Sep 17 00:00:00 2001 From: jsatoh Date: Sun, 22 Jun 2014 14:49:33 +0000 Subject: [PATCH] 2014-06-22 Junichi Satoh * godmode/massive/massive_edit_modules.php: Fixed unexpected update of 'module_interval'. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10255 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/massive/massive_edit_modules.php | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 810c688f6b..f9d623066c 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-06-22 Junichi Satoh + + * godmode/massive/massive_edit_modules.php: Fixed unexpected update + of 'module_interval'. + 2014-06-22 Junichi Satoh * include/functions_api.php: Added support for 'each_ff' and diff --git a/pandora_console/godmode/massive/massive_edit_modules.php b/pandora_console/godmode/massive/massive_edit_modules.php index 15bab59200..667378949b 100644 --- a/pandora_console/godmode/massive/massive_edit_modules.php +++ b/pandora_console/godmode/massive/massive_edit_modules.php @@ -924,8 +924,13 @@ function process_manage_edit ($module_name, $agents_select = null) { foreach ($fields as $field) { $value = get_parameter ($field, ''); - + switch ($field) { + case 'module_interval': + if ($value != 0) { + $values[$field] = $value; + } + break; default: if ($value != '') { $values[$field] = $value;