Skip to content

Commit

Permalink
Evarisk#598 [Module] add: remove certificate from training session
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-francois committed Jul 31, 2024
1 parent ba02ebd commit 5bfd83c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion core/modules/modDoliMeet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '>=')) {
Expand Down
4 changes: 2 additions & 2 deletions view/session/session_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -480,7 +480,7 @@

print dol_get_fiche_end();

$documentTypeArray = ['trainingsession', 'attendancesheet', 'completioncertificate'];
$documentTypeArray = ['trainingsession', 'attendancesheet'];
// Buttons for actions.
if ($action != 'presend') {
print '<div class="tabsAction">';
Expand Down

0 comments on commit 5bfd83c

Please sign in to comment.