diff --git a/htdocs/admin/propale.php b/htdocs/admin/propale.php index f9e53d906d1..6eb6ec321ef 100644 --- a/htdocs/admin/propale.php +++ b/htdocs/admin/propale.php @@ -100,6 +100,13 @@ if ($_POST["action"] == 'setadddeliveryaddress') exit; } +if ($_POST["action"] == 'setuseoptionline') +{ + dolibarr_set_const($db, "PROPALE_USE_OPTION_LINE",$_POST["value"]); + Header("Location: propale.php"); + exit; +} + if ($_POST["action"] == 'setclassifiedinvoiced') { dolibarr_set_const($db, "PROPALE_CLASSIFIED_INVOICED_WITH_ORDER",$_POST["value"]); @@ -107,9 +114,9 @@ if ($_POST["action"] == 'setclassifiedinvoiced') exit; } -if ($_POST["action"] == 'set_use_customer_contact_as_recipient') +if ($_POST["action"] == 'setusecustomercontactasrecipient') { - dolibarr_set_const($db, "PROPALE_USE_CUSTOMER_CONTACT_AS_RECIPIENT",$_POST["use_customer_contact_as_recipient"]); + dolibarr_set_const($db, "PROPALE_USE_CUSTOMER_CONTACT_AS_RECIPIENT",$_POST["value"]); Header("Location: propale.php"); exit; } @@ -429,11 +436,23 @@ print ''; $var=! $var; print '
'; + +$var=! $var; +print '