From 200f778dd964d092053c87ca4d0d9d89897b1398 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Mon, 9 Jan 2012 17:43:16 +0000 Subject: [PATCH] 2012-01-09 Juan Manuel Ramon * include/functions_api.php: Added new serialized parameter in set_create_network_module function from api. Without it Web console interface module edit view crash. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5330 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_api.php | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 74ce9cee22..5e9b3b7c9a 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-01-09 Juan Manuel Ramon + * include/functions_api.php: Added new serialized parameter in + set_create_network_module function from api. Without it Web console + interface module edit view crash. + 2012-01-09 Vanessa Gil * pandoradb.oracle.sql pandoradb.postgreSQL.sql diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index ad1d69f505..b90a86ce25 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -759,11 +759,11 @@ function set_delete_agent($id, $thrash1, $thrast2, $thrash3) { * @param array $other it's array, $other as param is ;;; * ;;;;;;;; * ;;;;;;; - * ;;; in this order + * ;;;; in this order * and separator char (after text ; ) and separator (pass in param othermode as othermode=url_encode_separator_) * example: * - * api.php?op=set&op2=create_network_module&id=pepito&other=prueba|0|7|1|0|0|0|0|0|1|127.0.0.1|0||0|180|0|0|0||latency%20ping&other_mode=url_encode_separator_| + * api.php?op=set&op2=create_network_module&id=pepito&other=prueba|0|7|1|0|0|0|0|0|1|127.0.0.1|0||0|180|0|0|0||latency%20ping|2&other_mode=url_encode_separator_| * * @param $thrash3 Don't use */ @@ -796,6 +796,7 @@ function set_create_network_module($id, $thrash1, $other, $thrash3) { 'max' => $other['data'][19], 'custom_id' => $other['data'][20], 'descripcion' => $other['data'][21], + 'id_modulo' => $other['data'][22] ); $idModule = modules_create_agent_module($idAgent, $name, $values, true);