From 96f119ffd9d0f580ead1886ac67cfc3e39fa601d Mon Sep 17 00:00:00 2001 From: Lucas Marcouiller <45882981+Hystepik@users.noreply.github.com> Date: Tue, 14 Oct 2025 18:47:57 +0200 Subject: [PATCH] Fix member doc gen (#35751) Co-authored-by: Lucas Marcouiller --- htdocs/core/lib/functions2.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index 53eb88ee5e3..115cfab7f64 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -1979,7 +1979,7 @@ function getListOfModels($db, $type, $maxfilenamelength = 0) $liste[0] = $obj->label.': '.$langs->trans("None"); } } else { - if ($type == 'member' && $obj->doc_template_name == 'standard') { // Special case, if member template, we add variant per format + if ($type == 'member' && $obj->doc_template_name == 'standard_member') { // Special case, if member template, we add variant per format global $_Avery_Labels; include_once DOL_DOCUMENT_ROOT.'/core/lib/format_cards.lib.php'; foreach ($_Avery_Labels as $key => $val) {