Merge pull request #19900 from thomas-Ngr/develop_new_ticket_check_notify_tier_at_create

NEW option to default check "notify tier at creation" in ticket module
This commit is contained in:
Laurent Destailleur 2022-01-23 12:11:10 +01:00 committed by GitHub
commit dfcaeea9d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -749,7 +749,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_THIRDPARTY_AT_CREATION) ? 0 : 1));
$formticket->withusercreate = 0;
$formticket->withref = 1;
$formticket->fk_user_create = $user->id;