NEW ticket module : add an option to enable default check notify tier at creation

introduces new option TICKET_CHECK_NOTIFY_TIER_AT_CREATE
This commit is contained in:
Thomas Negre 2022-01-21 09:44:22 +01:00
parent 1ae01ba2fc
commit bb86be062c

2
htdocs/ticket/card.php Normal file → Executable file
View File

@ -742,7 +742,7 @@ if ($action == 'create' || $action == 'presend') {
$formticket->withfromsocid = $socid ? $socid : $user->socid;
$formticket->withfromcontactid = $contactid ? $contactid : '';
$formticket->withtitletopic = 1;
$formticket->withnotifytiersatcreate = ($notifyTiers ? 1 : 0);
$formticket->withnotifytiersatcreate = ($notifyTiers ? 1 : !empty($conf->global->TICKET_CHECK_NOTIFY_TIER_AT_CREATE) ? 1 : 0);
$formticket->withusercreate = 0;
$formticket->withref = 1;
$formticket->fk_user_create = $user->id;