From 042db61523b675ad0a94a8afb64ec6a3c647a5b2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 15 Oct 2022 13:52:57 +0200 Subject: [PATCH] Merge --- htdocs/comm/action/card.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index eeaa81a2d48..e3923cfb8d0 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -535,8 +535,8 @@ if (empty($reshook) && $action == 'update') { $datef = dol_mktime($fulldayevent ? '23' : GETPOST("p2hour", 'int'), $fulldayevent ? '59' : GETPOST("p2min", 'int'), $fulldayevent ? '59' : GETPOST("apsec", 'int'), GETPOST("p2month", 'int'), GETPOST("p2day", 'int'), GETPOST("p2year", 'int'), 'tzuser'); } - if($object->elementtype == 'ticket'){ - if($private){ + if ($object->elementtype == 'ticket') { + if ($private) { $object->type_code = 'TICKET_MSG_PRIVATE'; } else { $object->type_id = dol_getIdFromCode($db, 'AC_EMAIL', 'c_actioncomm'); @@ -1542,7 +1542,7 @@ if ($id > 0) { } // Private - if($object->elementtype == 'ticket') print ''.$langs->trans("PrivateEventMessage").'code == 'TICKET_MSG_PRIVATE') ? ' checked' : '').'>'; + if ($object->elementtype == 'ticket') print ''.$langs->trans("PrivateEventMessage").'code == 'TICKET_MSG_PRIVATE') ? ' checked' : '').'>'; // Title print ''.$langs->trans("Title").''; @@ -1999,7 +1999,7 @@ if ($id > 0) { } // Private - if($object->elementtype == 'ticket') print ''.$langs->trans("PrivateEventMessage").''.yn(($object->code == 'TICKET_MSG_PRIVATE') ? 1 : 0, 3).''; + if ($object->elementtype == 'ticket') print ''.$langs->trans("PrivateEventMessage").''.yn(($object->code == 'TICKET_MSG_PRIVATE') ? 1 : 0, 3).''; // Full day event print ''.$langs->trans("EventOnFullDay").''.yn($object->fulldayevent ? 1 : 0, 3).'';