Fix member doc gen (#35751)

Co-authored-by: Lucas Marcouiller <lmarcouiller@dolicloud.com>
This commit is contained in:
Lucas Marcouiller 2025-10-14 18:47:57 +02:00 committed by GitHub
parent cb3d3c09c4
commit 96f119ffd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {