Merge pull request #18324 from Hystepik/develop#4
Close #18043 : fk_user_assign in create ticket
This commit is contained in:
commit
d3fa85cdb4
@ -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 '<input type="checkbox" id="notify_tiers_at_create" name="notify_tiers_at_create"'.($this->withnotifytiersatcreate ? ' checked="checked"' : '').'>';
|
||||||
print '</td></tr>';
|
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) {
|
if (!empty($conf->projet->enabled) && !$this->ispublic) {
|
||||||
|
|||||||
@ -188,6 +188,11 @@ if (empty($reshook)) {
|
|||||||
$object->email_from = $user->email;
|
$object->email_from = $user->email;
|
||||||
$notifyTiers = GETPOST("notify_tiers_at_create", 'alpha');
|
$notifyTiers = GETPOST("notify_tiers_at_create", 'alpha');
|
||||||
$object->notify_tiers_at_create = empty($notifyTiers) ? 0 : 1;
|
$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;
|
$object->fk_project = $projectid;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user