Merge branch '726-Uso-de-tabla-enterprise-en-versión-6-open' into 'pandora_6.0'

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

See merge request !423
This commit is contained in:
vgilc 2017-05-16 13:15:07 +02:00
commit f4e6c2fa6e

View File

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