add custom tpl to note (#31736)

* add custom tpl to note

* Update note.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
JonathanBtq
2024-11-12 04:00:37 +01:00
committed by GitHub
parent 4a97adfc62
commit 71a47c6555

View File

@@ -146,7 +146,13 @@ if ($id > 0 || !empty($ref)) {
$cssclass = "titlefield";
include DOL_DOCUMENT_ROOT.'/core/tpl/notes.tpl.php';
$dirtpls = array_merge($conf->modules_parts['tpl'], array('/core/tpl'));
foreach ($dirtpls as $reldir) {
$res = @include dol_buildpath($reldir.'/notes.tpl.php');
if ($res) {
break;
}
}
print '</div>';