FIX when creating tickets from public interface and backoffice at the same time, values from the ticket created on public interface were not erased during creation from backoffice.
This commit is contained in:
parent
a93cc99e4d
commit
1c70a2b3da
1 changed files with 2 additions and 2 deletions
|
|
@ -226,7 +226,7 @@ if (empty($reshook)) {
|
|||
$object->ref = $getRef;
|
||||
}
|
||||
|
||||
$object->fk_soc = GETPOST("socid", 'int') > 0 ? GETPOST("socid", 'int') : 0;
|
||||
$object->fk_soc = $object->socid = GETPOST("socid", 'int') > 0 ? GETPOST("socid", 'int') : 0;
|
||||
$object->subject = GETPOST("subject", 'alphanohtml');
|
||||
$object->message = GETPOST("message", 'restricthtml');
|
||||
|
||||
|
|
@ -236,7 +236,7 @@ if (empty($reshook)) {
|
|||
$object->category_label = $langs->trans($langs->getLabelFromKey($db, $object->category_code, 'c_ticket_category', 'code', 'label'));
|
||||
$object->severity_code = GETPOST("severity_code", 'alpha');
|
||||
$object->severity_label = $langs->trans($langs->getLabelFromKey($db, $object->severity_code, 'c_ticket_severity', 'code', 'label'));
|
||||
$object->email_from = $user->email;
|
||||
$object->email_from = $object->origin_email = $user->email;
|
||||
$notifyTiers = GETPOST("notify_tiers_at_create", 'alpha');
|
||||
$object->notify_tiers_at_create = empty($notifyTiers) ? 0 : 1;
|
||||
$fk_user_assign = GETPOST("fk_user_assign", 'int');
|
||||
|
|
|
|||
Loading…
Reference in a new issue