Insert skin and password fields on group creator insert only in enterprise 6 version - 726

This commit is contained in:
enriquecd 2017-04-28 14:53:54 +02:00
parent cbb1d4a15e
commit 027b372b41

View File

@ -197,13 +197,16 @@ if (($create_group) && (check_acl($config['id_user'], 0, "PM"))) {
'parent' => $id_parent, 'parent' => $id_parent,
'disabled' => $alerts_disabled, 'disabled' => $alerts_disabled,
'custom_id' => $custom_id, 'custom_id' => $custom_id,
'id_skin' => $skin,
'description' => $description, 'description' => $description,
'contact' => $contact, 'contact' => $contact,
'propagate' => $propagate, 'propagate' => $propagate,
'other' => $other, 'other' => $other
'password' => io_safe_input($group_pass)
); );
if(enterprise_installed()){
$values['id_skin'] = $skin;
$values['password'] = io_safe_input($group_pass);
}
$result = db_process_sql_insert('tgrupo', $values); $result = db_process_sql_insert('tgrupo', $values);
if ($result) { if ($result) {