From 0e9164534936a7e70c8a1ceda0b637d4052b13e2 Mon Sep 17 00:00:00 2001 From: hkosaka Date: Tue, 30 Oct 2012 07:59:55 +0000 Subject: [PATCH] 2012-10-30 Hirofumi Kosaka * include/functions_api.php: added 'description' parameter to 'create_group' API. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7110 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_api.php | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d91992cb25..12874d6134 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-10-30 Hirofumi Kosaka + + * include/functions_api.php: added 'description' parameter to + 'create_group' API. + 2012-10-29 Ramon Novoa * extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql, diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 440eea7c92..895ab20b00 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -3690,7 +3690,7 @@ function api_set_apply_all_policies($thrash1, $thrash2, $other, $thrash3) { * * @param string $id Name of the new group. * @param $thrash1 Don't use. - * @param array $other it's array, $other as param is ;; in this order + * @param array $other it's array, $other as param is ;; in this order * and separator char (after text ; ) and separator (pass in param othermode as othermode=url_encode_separator_) * example: * @@ -3729,12 +3729,14 @@ function api_set_create_group($id, $thrash1, $other, $thrash3) { if ($other['data'][1] != "") { $values = array( 'icon' => $other['data'][0], - 'parent' => $other['data'][1] + 'parent' => $other['data'][1], + 'description' => $other['data'][2] ); } else { $values = array( - 'icon' => $other['data'][0] + 'icon' => $other['data'][0], + 'description' => $other['data'][2] ); }