From a5ce3ada0aab2f0fed6fb2e1f9ba569175062c0f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 18 Jun 2020 02:35:08 +0200 Subject: [PATCH] Keep feature experimental as it need a lot of change --- htdocs/core/lib/invoice.lib.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/core/lib/invoice.lib.php b/htdocs/core/lib/invoice.lib.php index a669b12adfe..f081fc94120 100644 --- a/htdocs/core/lib/invoice.lib.php +++ b/htdocs/core/lib/invoice.lib.php @@ -164,10 +164,12 @@ function invoice_admin_prepare_head() $head[$h][2] = 'attributeslinesrec'; $h++; - $head[$h][0] = DOL_URL_ROOT.'/admin/facture_situation.php'; - $head[$h][1] = $langs->trans("InvoiceSituation"); - $head[$h][2] = 'situation'; - $h++; + if ($conf->global->INVOICE_USE_SITUATION) { // Warning, implementation is seriously bugged and a new one not compatible is expected to become stable + $head[$h][0] = DOL_URL_ROOT.'/admin/facture_situation.php'; + $head[$h][1] = $langs->trans("InvoiceSituation"); + $head[$h][2] = 'situation'; + $h++; + } complete_head_from_modules($conf, $langs, null, $head, $h, 'invoice_admin', 'remove');