Changed update_group's parameters in the same order of 'create_group'.
This commit is contained in:
parent
a17c13981d
commit
88e2ca3a46
|
@ -4300,11 +4300,11 @@ function api_set_create_group($id, $thrash1, $other, $thrash3) {
|
||||||
*
|
*
|
||||||
* @param integer $id Group ID
|
* @param integer $id Group ID
|
||||||
* @param $thrash2 Don't use.
|
* @param $thrash2 Don't use.
|
||||||
* @param array $other it's array, $other as param is <group_name>;<icon_name>;<parent_group_id>;<propagete>;<disabled>;<custom_id>;<id_skin>;<description>;<contact>;<other> in this order
|
* @param array $other it's array, $other as param is <group_name>;<icon_name>;<parent_group_id>;<propagete>;<disabled>;<custom_id>;<description>;<contact>;<other> in this order
|
||||||
* and separator char (after text ; ) and separator (pass in param othermode as othermode=url_encode_separator_<separator>)
|
* and separator char (after text ; ) and separator (pass in param othermode as othermode=url_encode_separator_<separator>)
|
||||||
* example:
|
* example:
|
||||||
*
|
*
|
||||||
* api.php?op=set&op2=update_group&id=example_group_id&other=New%20Name|application|2|1|0|custom%20id|0|new%20description||&other_mode=url_encode_separator_|
|
* api.php?op=set&op2=update_group&id=example_group_id&other=New%20Name|application|2|new%20description|1|0|custom%20id||&other_mode=url_encode_separator_|
|
||||||
*
|
*
|
||||||
* @param $thrash3 Don't use
|
* @param $thrash3 Don't use
|
||||||
*/
|
*/
|
||||||
|
@ -4314,23 +4314,21 @@ function api_set_update_group($id_group, $thrash2, $other, $thrash3) {
|
||||||
$name = $other['data'][0];
|
$name = $other['data'][0];
|
||||||
$icon = $other['data'][1];
|
$icon = $other['data'][1];
|
||||||
$parent = $other['data'][2];
|
$parent = $other['data'][2];
|
||||||
$propagate = $other['data'][3];
|
$description = $other['data'][3];
|
||||||
$disabled = $other['data'][4];
|
$propagate = $other['data'][4];
|
||||||
$custom_id = $other['data'][5];
|
$disabled = $other['data'][5];
|
||||||
$id_skin = $other['data'][6];
|
$custom_id = $other['data'][6];
|
||||||
$description = $other['data'][7];
|
$contact = $other['data'][7];
|
||||||
$contact = $other['data'][8];
|
$other = $other['data'][8];
|
||||||
$other = $other['data'][9];
|
|
||||||
|
|
||||||
$return = db_process_sql_update('tgrupo',
|
$return = db_process_sql_update('tgrupo',
|
||||||
array('nombre' => $name,
|
array('nombre' => $name,
|
||||||
'icon' => $icon,
|
'icon' => $icon,
|
||||||
'parent' => $parent,
|
'parent' => $parent,
|
||||||
|
'description' => $description,
|
||||||
'propagate' => $propagate,
|
'propagate' => $propagate,
|
||||||
'disabled' => $disabled,
|
'disabled' => $disabled,
|
||||||
'custom_id' => $custom_id,
|
'custom_id' => $custom_id,
|
||||||
'id_skin' => $id_skin,
|
|
||||||
'description' => $description,
|
|
||||||
'contact' => $contact,
|
'contact' => $contact,
|
||||||
'other' => $other),
|
'other' => $other),
|
||||||
array('id_grupo' => $id_group));
|
array('id_grupo' => $id_group));
|
||||||
|
|
Loading…
Reference in New Issue