diff --git a/htdocs/comm/propal/note.php b/htdocs/comm/propal/note.php index 83ba8ffffe0..e8945513fc6 100644 --- a/htdocs/comm/propal/note.php +++ b/htdocs/comm/propal/note.php @@ -153,8 +153,13 @@ if ($object->id > 0) { print '
'; $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 ''; print dol_get_fiche_end(); diff --git a/htdocs/compta/facture/note.php b/htdocs/compta/facture/note.php index 2fb0377c3e8..4faee36abb2 100644 --- a/htdocs/compta/facture/note.php +++ b/htdocs/compta/facture/note.php @@ -163,8 +163,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 dol_get_fiche_end(); } diff --git a/htdocs/expedition/note.php b/htdocs/expedition/note.php index c453496bba7..ba5a6df7114 100644 --- a/htdocs/expedition/note.php +++ b/htdocs/expedition/note.php @@ -152,8 +152,13 @@ if ($id > 0 || !empty($ref)) { print '
'; $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 dol_get_fiche_end(); } diff --git a/htdocs/fichinter/note.php b/htdocs/fichinter/note.php index 6d058c14349..bafdcaff3a2 100644 --- a/htdocs/fichinter/note.php +++ b/htdocs/fichinter/note.php @@ -129,8 +129,13 @@ if ($id > 0 || !empty($ref)) { print '
'; $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 ''; print dol_get_fiche_end(); diff --git a/htdocs/modulebuilder/template/myobject_note.php b/htdocs/modulebuilder/template/myobject_note.php index 77821af1fe6..df6996ab2c8 100644 --- a/htdocs/modulebuilder/template/myobject_note.php +++ b/htdocs/modulebuilder/template/myobject_note.php @@ -227,8 +227,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 ''; print dol_get_fiche_end(); diff --git a/htdocs/mrp/mo_note.php b/htdocs/mrp/mo_note.php index 422a8e0b71c..da66e229a6c 100644 --- a/htdocs/mrp/mo_note.php +++ b/htdocs/mrp/mo_note.php @@ -156,8 +156,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 ''; print dol_get_fiche_end(); diff --git a/htdocs/ticket/note.php b/htdocs/ticket/note.php index 0e60dfee30c..8acec3c3279 100644 --- a/htdocs/ticket/note.php +++ b/htdocs/ticket/note.php @@ -5,7 +5,7 @@ * Copyright (C) 2017 Ferran Marcet * Copyright (C) 2024-2026 Frédéric France * Copyright (C) 2025 MDW - * Copyright (C) 2025 Charlene Benke + * Copyright (C) 2025-2026 Charlene Benke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -158,8 +158,13 @@ if ($id > 0 || !empty($ref)) { print '
'; $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 ''; print dol_get_fiche_end();