When create a propal, select model document chosen by defaut in module config

This commit is contained in:
jfefe 2013-03-16 01:13:44 +01:00
parent 5f1141675c
commit 8a3fae31e1

View File

@ -1331,7 +1331,7 @@ if ($action == 'create')
print '<td>'.$langs->trans("DefaultModel").'</td>';
print '<td colspan="2">';
$liste=ModelePDFPropales::liste_modeles($db);
print $form->selectarray('model',$liste,$conf->global->PROPALE_ADDON_PDF);
print $form->selectarray('model',$liste,($conf->global->PROPALE_ADDON_PDF_ODT_DEFAULT?$conf->global->PROPALE_ADDON_PDF_ODT_DEFAULT:$conf->global->PROPALE_ADDON_PDF));
print "</td></tr>";
// Project