From 9da13e94e05a5a620c777e65f149693e2867132c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 20 Apr 2024 18:49:24 +0200 Subject: [PATCH] CSS --- htdocs/core/class/html.formticket.class.php | 4 ++-- htdocs/public/ticket/create_ticket.php | 2 +- htdocs/public/ticket/list.php | 21 ++++++++++++++------- htdocs/public/ticket/view.php | 8 ++++---- htdocs/theme/eldy/global.inc.php | 3 ++- htdocs/theme/md/style.css.php | 7 ++++++- 6 files changed, 29 insertions(+), 16 deletions(-) diff --git a/htdocs/core/class/html.formticket.class.php b/htdocs/core/class/html.formticket.class.php index bb848a8c4d9..48a56b916a8 100644 --- a/htdocs/core/class/html.formticket.class.php +++ b/htdocs/core/class/html.formticket.class.php @@ -352,7 +352,7 @@ class FormTicket $this->selectSeveritiesTickets((GETPOST('severity_code') ? GETPOST('severity_code') : $this->severity_code), 'severity_code', '', 2, 1); print ''; - if (!empty($conf->knowledgemanagement->enabled)) { + if (isModEnabled('knowledgemanagement')) { // KM Articles print ''; print ' @@ -513,7 +513,7 @@ class FormTicket $out .= '
'; } } else { - $out .= $langs->trans("NoAttachedFiles").'
'; + $out .= ''.$langs->trans("NoAttachedFiles").'
'; } if ($this->withfile == 2) { // Can add other files $maxfilesizearray = getMaxFileSizeArray(); diff --git a/htdocs/public/ticket/create_ticket.php b/htdocs/public/ticket/create_ticket.php index f7c408c07ed..862b087f85b 100644 --- a/htdocs/public/ticket/create_ticket.php +++ b/htdocs/public/ticket/create_ticket.php @@ -533,7 +533,7 @@ if ($action != "infos_success") { print load_fiche_titre($langs->trans('NewTicket'), '', '', 0, 0, 'marginleftonly'); - if (getDolGlobalString('TICKET_NOTIFICATION_EMAIL_FROM')=='') { + if (!getDolGlobalString('TICKET_NOTIFICATION_EMAIL_FROM')) { $langs->load("errors"); print '
'; print $langs->trans("ErrorFieldRequired", $langs->transnoentities("TicketEmailNotificationFrom")).'
'; diff --git a/htdocs/public/ticket/list.php b/htdocs/public/ticket/list.php index ced67cef8d3..db7a20b4f01 100644 --- a/htdocs/public/ticket/list.php +++ b/htdocs/public/ticket/list.php @@ -715,7 +715,7 @@ if ($action == "view_ticketlist") { $url_public_ticket = getDolGlobalString('TICKET_URL_PUBLIC_INTERFACE', dol_buildpath('/public/ticket/', 1)); - print '