mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-12 10:52:37 +01:00
Merge pull request #18324 from Hystepik/develop#4
Close #18043 : fk_user_assign in create ticket
This commit is contained in:
@@ -436,6 +436,14 @@ class FormTicket
|
||||
print '<input type="checkbox" id="notify_tiers_at_create" name="notify_tiers_at_create"'.($this->withnotifytiersatcreate ? ' checked="checked"' : '').'>';
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
// User assigned
|
||||
print '<tr><td>';
|
||||
print $langs->trans("AssignedTo");
|
||||
print '</td><td>';
|
||||
print $form->select_dolusers(GETPOST('fk_user_assign', 'int'), 'fk_user_assign', 1);
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
|
||||
if (!empty($conf->projet->enabled) && !$this->ispublic) {
|
||||
|
||||
@@ -188,6 +188,11 @@ if (empty($reshook)) {
|
||||
$object->email_from = $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');
|
||||
if ($fk_user_assign > 0) {
|
||||
$object->fk_user_assign = $fk_user_assign;
|
||||
$object->fk_statut = $object::STATUS_ASSIGNED;
|
||||
}
|
||||
|
||||
$object->fk_project = $projectid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user