Get ticket template to use
Use force_template first, then try on template define for type and category
then use default template of active profile of connected user and then use default entity one
public getTicketTemplateToUse ( $force_template, $type, $itilcategories_id, $entities_id ) : ticket | ||
$force_template | integer tickettemplate_id to used (case of preview for example) (default 0) | |
$type | integer type of the ticket (default 0) | |
$itilcategories_id | integer ticket category (default 0) | |
$entities_id | integer (default -1) | |
return | ticket | template object |