Update actions_ticket.class.php

This commit is contained in:
Laurent Destailleur 2024-03-20 10:52:37 +01:00 committed by GitHub
parent db61f9a676
commit 755d1feae8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -216,8 +216,8 @@ class ActionsTicket extends CommonHookActions
include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
$uselocalbrowser = true;
$ckeditorenabledforticket = getDolGlobalString('FCKEDITOR_ENABLE_TICKET');
if(!$ckeditorenabledforticket){
$msg = dol_string_nohtmltag($msg,2);
if (!$ckeditorenabledforticket) {
$msg = dol_string_nohtmltag($msg, 2);
}
$doleditor = new DolEditor('message_initial', $msg, '100%', 250, 'dolibarr_details', 'In', true, $uselocalbrowser, $ckeditorenabledforticket, ROWS_9, '95%');
$doleditor->Create();