mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
2011-08-31 Miguel de Dios <miguel.dedios@artica.es>
* godmode/massive/massive_edit_modules.php: fixed when is selected "any" agent, with white space run fine. Fixes: #3401591 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4864 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e9f5fc64cd
commit
c317e3413e
@ -1,3 +1,10 @@
|
|||||||
|
2011-08-31 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* godmode/massive/massive_edit_modules.php: fixed when is selected "any"
|
||||||
|
agent, with white space run fine.
|
||||||
|
|
||||||
|
Fixes: #3401591
|
||||||
|
|
||||||
2011-08-31 Miguel de Dios <miguel.dedios@artica.es>
|
2011-08-31 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_agents.php: fixed the fields as sql operations as field.
|
* include/functions_agents.php: fixed the fields as sql operations as field.
|
||||||
|
@ -51,16 +51,25 @@ function process_manage_edit ($module_name, $agents_select = null) {
|
|||||||
// Whether to update module tag info
|
// Whether to update module tag info
|
||||||
$update_tags = get_parameter('id_tag', false);
|
$update_tags = get_parameter('id_tag', false);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (array_search(0, $agents_select) !== false) {
|
||||||
|
$modules = db_get_all_rows_filter ('tagente_modulo',
|
||||||
|
array ('nombre' => $module_name),
|
||||||
|
array ('id_agente_modulo'));
|
||||||
|
}
|
||||||
|
else {
|
||||||
$modules = db_get_all_rows_filter ('tagente_modulo',
|
$modules = db_get_all_rows_filter ('tagente_modulo',
|
||||||
array ('id_agente' => $agents_select,
|
array ('id_agente' => $agents_select,
|
||||||
'nombre' => $module_name),
|
'nombre' => $module_name),
|
||||||
array ('id_agente_modulo'));
|
array ('id_agente_modulo'));
|
||||||
|
}
|
||||||
|
|
||||||
db_process_sql_begin ();
|
db_process_sql_begin ();
|
||||||
|
|
||||||
if ($modules === false)
|
if ($modules === false)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
foreach ($modules as $module) {
|
foreach ($modules as $module) {
|
||||||
$result = modules_update_agent_module ($module['id_agente_modulo'], $values, true, $update_tags);
|
$result = modules_update_agent_module ($module['id_agente_modulo'], $values, true, $update_tags);
|
||||||
|
|
||||||
|
4
pandora_server/util/agent_names.txt
Normal file
4
pandora_server/util/agent_names.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
salamanca
|
||||||
|
valladolid
|
||||||
|
leon
|
||||||
|
madrid
|
Loading…
x
Reference in New Issue
Block a user