Fix: [ bug #256 ] Delivery order SQL error

This commit is contained in:
Laurent Destailleur 2011-12-21 16:38:43 +01:00
parent 7a106a3fb9
commit 4fd76605e4

View File

@ -50,9 +50,10 @@ else if ($_GET["action"] == 'disable_sending')
}
else if ($_GET["action"] == 'activate_delivery')
{
dolibarr_set_const($db, "MAIN_SUBMODULE_LIVRAISON", "1",'chaine',0,'',$conf->entity);
Header("Location: confexped.php");
exit;
dolibarr_set_const($db, "MAIN_SUBMODULE_EXPEDITION", "1",'chaine',0,'',$conf->entity); // We must also enable this
dolibarr_set_const($db, "MAIN_SUBMODULE_LIVRAISON", "1",'chaine',0,'',$conf->entity);
Header("Location: confexped.php");
exit;
}
else if ($_GET["action"] == 'disable_delivery')
{