Merge branch 'ent-7367-api-creacion-grupos-error' into 'develop'
Set default values for max agents in group creation Closes pandora_enterprise#7367 See merge request artica/pandorafms!4054
This commit is contained in:
commit
cb3bf7fed0
|
@ -756,14 +756,18 @@ function groups_create_group($group_name, $rest_values)
|
||||||
|
|
||||||
$values = array_merge($rest_values, $array_tmp);
|
$values = array_merge($rest_values, $array_tmp);
|
||||||
|
|
||||||
if (!isset($values['propagate'])) {
|
if (isset($values['propagate']) === false) {
|
||||||
$values['propagate'] = 0;
|
$values['propagate'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($values['disabled'])) {
|
if (isset($values['disabled']) === false) {
|
||||||
$values['disabled'] = 0;
|
$values['disabled'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($values['max_agents']) === false) {
|
||||||
|
$values['max_agents'] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
$check = db_get_value('nombre', 'tgrupo', 'nombre', $group_name);
|
$check = db_get_value('nombre', 'tgrupo', 'nombre', $group_name);
|
||||||
|
|
||||||
if (!$check) {
|
if (!$check) {
|
||||||
|
|
Loading…
Reference in New Issue