From 64f908a26d295eeb9c69725605aa18250896cdbf Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 24 Apr 2006 13:59:58 +0000 Subject: [PATCH] =?UTF-8?q?possibilit=E9=20de=20d=E9finir=20l'adresse=20de?= =?UTF-8?q?=20livraison=20dans=20la=20propale=20si=20la=20constante=20PROP?= =?UTF-8?q?AL=5FADD=5FDELIVERY=5FADDRESS=20=20est=20d=E9finie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/adresse_livraison.php | 11 ++++++++++- htdocs/comm/propal.php | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/adresse_livraison.php b/htdocs/comm/adresse_livraison.php index 86d2a8c65e8..0784b543580 100644 --- a/htdocs/comm/adresse_livraison.php +++ b/htdocs/comm/adresse_livraison.php @@ -107,6 +107,11 @@ if ($_POST["action"] == 'add' || $_POST["action"] == 'update') Header("Location: ../commande/fiche.php?action=editdelivery_adress&socid=".$socid."&id=".$originid); exit; } + elseif ($origin == propal) + { + Header("Location: ../comm/propal.php?action=editdelivery_adress&socidp=".$socid."&propalid=".$originid); + exit; + } else { Header("Location: adresse_livraison.php?socid=".$socid); @@ -131,9 +136,13 @@ if ($_POST["action"] == 'add' || $_POST["action"] == 'update') { if ($origin == commande) { - Header("Location: ../commande/fiche.php?&id=".$originid); + Header("Location: ../commande/fiche.php?id=".$originid); exit; } + elseif ($origin == propal) + { + Header("Location: ../comm/propal.php?propalid=".$originid); + exit; else { Header("Location: adresse_livraison.php?socid=".$socid); diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 3d9e7c438ec..69ed7bdbaa5 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -661,7 +661,7 @@ if ($_GET['propalid'] > 0) print $langs->trans('DeliveryAddress'); print ''; - if ($_GET['action'] != 'editdelivery_adress' && $propal->brouillon) print 'socidp.'&id='.$propal->id.'">'.img_edit($langs->trans('SetDeliveryAddress'),1).''; + if ($_GET['action'] != 'editdelivery_adress' && $propal->brouillon) print 'socidp.'&propalid='.$propal->id.'">'.img_edit($langs->trans('SetDeliveryAddress'),1).''; print ''; print '';