diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index f047a9f08a6..f10d3c5e77b 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -40,7 +40,7 @@ $facture_addon_var_pdf = FACTURE_ADDON_PDF; if ($action == 'set') { - $sql = "REPLACE INTO llx_const SET name = 'FACTURE_ADDON', value='".$value."'"; + $sql = "REPLACE INTO llx_const SET name = 'FACTURE_ADDON', value='".$value."', visible=0"; if ($db->query($sql)) { @@ -52,7 +52,7 @@ if ($action == 'set') if ($action == 'setpdf') { - $sql = "REPLACE INTO llx_const SET name = 'FACTURE_ADDON_PDF', value='".$value."'"; + $sql = "REPLACE INTO llx_const SET name = 'FACTURE_ADDON_PDF', value='".$value."', visible=0"; if ($db->query($sql)) {