mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
26 lines
1.1 KiB
PHP
26 lines
1.1 KiB
PHP
<?php
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
|
|
$smarty->assign("TICKETID",$record);
|
|
|
|
//Added code for Error display in sending mail to assigned to user when ticket is created or updated.
|
|
if($_REQUEST['mail_error'] != '')
|
|
{
|
|
require_once("modules/Emails/mail.php");
|
|
$ticket_owner = getUserName($focus->column_fields['assigned_user_id']);
|
|
$error_msg = strip_tags(parseEmailErrorString($_REQUEST['mail_error']));
|
|
$error_msg = $app_strings['LBL_MAIL_NOT_SENT_TO_USER']. ' ' . $ticket_owner. '. ' .$app_strings['LBL_PLS_CHECK_EMAIL_N_SERVER'];
|
|
echo $mod_strings['LBL_MAIL_SEND_STATUS'].' <b><font class="warning">'.$error_msg.'</font></b>';
|
|
}
|
|
|
|
//Added button for Convert the ticket to FAQ
|
|
if (vtlib_isModuleActive('Faq') && isPermitted("Faq","EditView",'') == 'yes') {
|
|
$smarty->assign("CONVERTASFAQ","permitted");
|
|
}
|
|
|
|
//Added to display the ticket comments information
|
|
$smarty->assign("COMMENT_BLOCK",$focus->getCommentInformation($record));
|
|
?>
|