From 65f78b6e86a7016fa2e4389fb8aae271c677ea12 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 20 Oct 2023 12:59:12 +0200 Subject: [PATCH] Close #26293 manually to avoid duplicate menu statistics --- htdocs/product/popuprop.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/product/popuprop.php b/htdocs/product/popuprop.php index 4bde44f1892..8c8271738ba 100644 --- a/htdocs/product/popuprop.php +++ b/htdocs/product/popuprop.php @@ -113,7 +113,13 @@ $head[$h][2] = 'chart'; $h++; $head[$h][0] = DOL_URL_ROOT.'/product/popuprop.php'; -$head[$h][1] = $langs->trans("ProductsPerPopularity"); +$head[$h][1] = $langs->trans("ProductsServicesPerPopularity"); +if ((string) $type == '0') { + $head[$h][1] = $langs->trans("ProductsPerPopularity"); +} +if ((string) $type == '1') { + $head[$h][1] = $langs->trans("ServicesPerPopularity"); +} $head[$h][2] = 'popularity'; $h++;