Fix: Choix du module de generation du model du bon de dons ne fonctionnait pas.

This commit is contained in:
Laurent Destailleur 2005-12-07 01:14:28 +00:00
parent e1b4682db6
commit 786553bb91

View File

@ -41,7 +41,7 @@ $dons_addon_var = DON_ADDON;
$typeconst=array('yesno','texte','chaine'); $typeconst=array('yesno','texte','chaine');
if ($_GET["action"] == 'set') if ($_GET["action"] == 'setmodelbon')
{ {
if (dolibarr_set_const($db, "DON_ADDON",$_GET["value"])) if (dolibarr_set_const($db, "DON_ADDON",$_GET["value"]))
$don_addon_var = $_GET["value"]; $don_addon_var = $_GET["value"];
@ -101,7 +101,7 @@ while (($file = readdir($handle))!==false)
{ {
print ' '; print ' ';
print '</td><td align="center">'; print '</td><td align="center">';
print '<a href="dons.php?action=setform&value='.$name.'">'.$langs->trans("Activate").'</a>'; print '<a href="dons.php?action=setmodelbon&value='.$name.'">'.$langs->trans("Activate").'</a>';
} }
print "</td></tr>\n"; print "</td></tr>\n";