Update view.php

This commit is contained in:
Laurent Destailleur 2024-03-16 15:37:38 +01:00 committed by GitHub
parent 33de57bd6c
commit bb57fb3a93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -221,7 +221,7 @@ $formticket = new FormTicket($db);
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('ticketpublicview', 'globalcard'));
if (empty(getDolGlobalString('TICKET_ENABLE_PUBLIC_INTERFACE'))) {
if (!getDolGlobalString('TICKET_ENABLE_PUBLIC_INTERFACE')) {
print '<div class="error">'.$langs->trans('TicketPublicInterfaceForbidden').'</div>';
$db->close();
exit();
@ -331,7 +331,7 @@ if ($action == "view_ticket" || $action == "presend" || $action == "close" || $a
print '</td></tr>';
// Progression
if (!empty(getDolGlobalString('TICKET_SHOW_PROGRESSION'))) {
if (getDolGlobalString('TICKET_SHOW_PROGRESSION')) {
print '<tr><td>'.$langs->trans("Progression").'</td><td>';
print ($object->dao->progress > 0 ? dol_escape_htmltag($object->dao->progress) : '0').'%';
print '</td></tr>';