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:
mdtrooper 2011-08-31 17:20:20 +00:00
parent e9f5fc64cd
commit c317e3413e
3 changed files with 22 additions and 2 deletions

View File

@ -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>
* include/functions_agents.php: fixed the fields as sql operations as field.

View File

@ -51,16 +51,25 @@ function process_manage_edit ($module_name, $agents_select = null) {
// Whether to update module tag info
$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',
array ('id_agente' => $agents_select,
'nombre' => $module_name),
array ('id_agente_modulo'));
}
db_process_sql_begin ();
if ($modules === false)
return false;
foreach ($modules as $module) {
$result = modules_update_agent_module ($module['id_agente_modulo'], $values, true, $update_tags);

View File

@ -0,0 +1,4 @@
salamanca
valladolid
leon
madrid