From 4fd76605e4bd48cb4ec3aa6a8bf6f43d2214fcf0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 21 Dec 2011 16:38:43 +0100 Subject: [PATCH] Fix: [ bug #256 ] Delivery order SQL error --- htdocs/admin/confexped.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/confexped.php b/htdocs/admin/confexped.php index 8e20d4033fb..6b4f7981642 100644 --- a/htdocs/admin/confexped.php +++ b/htdocs/admin/confexped.php @@ -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') {