diff --git a/htdocs/admin/produit.php b/htdocs/admin/produit.php index 585ebf72fe4..6a0e04ce964 100644 --- a/htdocs/admin/produit.php +++ b/htdocs/admin/produit.php @@ -133,13 +133,13 @@ else if ($_GET["action"] == 'disable_sousproduits') Header("Location: produit.php"); exit; } -else if ($_GET["action"] == 'activate_confirmdelete') +else if ($_GET["action"] == 'activate_confirmdeleteline') { dolibarr_set_const($db, "PRODUIT_CONFIRM_DELETE_LINE", "1"); Header("Location: produit.php"); exit; } -else if ($_GET["action"] == 'disable_confirmdelete') +else if ($_GET["action"] == 'disable_confirmdeleteline') { dolibarr_del_const($db, "PRODUIT_CONFIRM_DELETE_LINE"); Header("Location: produit.php"); diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index a2aa08a18b7..932067b50c0 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -96,7 +96,7 @@ if ($_POST['action'] == 'confirm_deleteproductline' && $_POST['confirm'] == 'yes $propal->delete_product($_GET['ligne']); propale_pdf_create($db, $_GET['propalid'], $propal->modelpdf); } - Header('Location: '.$_SERVER["PHP_SELF"]); + Header('Location: '.$_SERVER["PHP_SELF"].'?propalid='.$_GET['propalid']); exit; } diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index d65261e536e..31b16004012 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -461,6 +461,7 @@ LDAPSetupForVersion2=LDAP server configured for version 2 ##### Products ##### ProductSetup=Products module setup NumberOfProductShowInSelect=Max number of products in combos select lists (0=no limit) +ConfirmDeleteProductLineAbility=Confirmation of removal of a line produces in the forms ##### Sendings ##### SendingsSetup=Sending module setup SendingsReceiptModel=Sending receipt model diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index 54a51268efc..5ebe6d9faef 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -461,6 +461,7 @@ LDAPSetupForVersion2=Serveur LDAP configur ##### Products ##### ProductSetup=Configuration du module Produits NumberOfProductShowInSelect=Nombre de produits max dans les listes déroulantes (0=aucune limite) +ConfirmDeleteProductLineAbility=Confirmation de suppression d'une ligne produit dans les formulaires ##### Sendings ##### SendingsSetup=Configuration du module Expéditions/Livraisons SendingsReceiptModel=Modèle du bordereau d'expédition