From 5bfd83c2108afe6da7fe4c6c02667029eb7e4e80 Mon Sep 17 00:00:00 2001 From: evarisk-francois Date: Wed, 31 Jul 2024 16:56:17 +0200 Subject: [PATCH] #598 [Module] add: remove certificate from training session --- core/modules/modDoliMeet.class.php | 1 - view/session/session_card.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/modules/modDoliMeet.class.php b/core/modules/modDoliMeet.class.php index 2527256..646313e 100644 --- a/core/modules/modDoliMeet.class.php +++ b/core/modules/modDoliMeet.class.php @@ -579,7 +579,6 @@ public function init($options = ''): int delDocumentModel('completioncertificatedocument_odt', 'completioncertificatedocument'); addDocumentModel('attendancesheetdocument_odt', 'trainingsessiondocument', 'ODT templates', 'DOLIMEET_ATTENDANCESHEETDOCUMENT_ADDON_ODT_PATH'); - addDocumentModel('completioncertificatedocument_odt', 'trainingsessiondocument', 'ODT templates', 'DOLIMEET_COMPLETIONCERTIFICATEDOCUMENT_ADDON_ODT_PATH'); addDocumentModel('completioncertificatedocument_odt', 'completioncertificatedocument', 'ODT templates', 'DOLIMEET_COMPLETIONCERTIFICATEDOCUMENT_ADDON_ODT_PATH'); if (getDolGlobalInt('DOLIMEET_EMAIL_TEMPLATE_SET') == 0 && isModEnabled('digiquali') && version_compare(getDolGlobalString('DIGIQUALI_VERSION'), '1.11.0', '>=')) { diff --git a/view/session/session_card.php b/view/session/session_card.php index f369789..08e2067 100644 --- a/view/session/session_card.php +++ b/view/session/session_card.php @@ -458,7 +458,7 @@ unset($object->fields['fk_project']); // Hide field already shown in banner. unset($object->fields['fk_soc']); // Hide field already shown in banner. unset($object->fields['fk_contrat']); // Hide field already shown in banner. - + // Common attributes. require_once DOL_DOCUMENT_ROOT . '/core/tpl/commonfields_view.tpl.php'; @@ -480,7 +480,7 @@ print dol_get_fiche_end(); - $documentTypeArray = ['trainingsession', 'attendancesheet', 'completioncertificate']; + $documentTypeArray = ['trainingsession', 'attendancesheet']; // Buttons for actions. if ($action != 'presend') { print '
';