Skip to content
Snippets Groups Projects
Commit 9eb19258 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX No need to ask doc template when only one is defined

parent c340745b
No related branches found
No related tags found
No related merge requests found
......@@ -712,13 +712,16 @@ if ($action == 'create')
}
// Document model
print "<tr><td>".$langs->trans("Model")."</td>";
print '<td colspan="3">';
include_once DOL_DOCUMENT_ROOT . '/core/modules/expedition/modules_expedition.php';
$liste = ModelePdfExpedition::liste_modeles($db);
print $form->selectarray('model', $liste, $conf->global->EXPEDITION_ADDON_PDF);
print "</td></tr>\n";
if (count($liste) > 1)
{
print "<tr><td>".$langs->trans("Model")."</td>";
print '<td colspan="3">';
print $form->selectarray('model', $liste, $conf->global->EXPEDITION_ADDON_PDF);
print "</td></tr>\n";
}
print "</table>";
dol_fiche_end();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment