From 512aff8fa471b1fdab6f9c5cd0911d4892b162af Mon Sep 17 00:00:00 2001 From: lvessiller Date: Mon, 23 May 2022 12:17:02 +0200 Subject: [PATCH] NEW MAIN_SEARCH_CATEGORY_PRODUCT_ON_LISTS const to show category customer filter --- htdocs/product/inventory/list.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/product/inventory/list.php b/htdocs/product/inventory/list.php index 7e795d821bf..553f4ed8baa 100644 --- a/htdocs/product/inventory/list.php +++ b/htdocs/product/inventory/list.php @@ -464,13 +464,15 @@ $moreforfilter.= $langs->trans('MyFilter') . ': '; - $moreforfilter .= img_picto($langs->trans('Categories'), 'category', 'class="pictofixedwidth"'); + $tmptitle = $langs->transnoentities('ProductsCategoriesShort'); + $moreforfilter .= img_picto($tmptitle, 'category', 'class="pictofixedwidth"'); $categoriesProductArr = $form->select_all_categories(Categorie::TYPE_PRODUCT, '', '', 64, 0, 1); $categoriesProductArr[-2] = '- '.$langs->trans('NotCategorized').' -'; - $moreforfilter .= Form::multiselectarray('search_category_product_list', $categoriesProductArr, $searchCategoryProductList, 0, 0, 'minwidth300'); - $moreforfilter .= ' '; + $moreforfilter .= Form::multiselectarray('search_category_product_list', $categoriesProductArr, $searchCategoryProductList, 0, 0, 'minwidth300', 0, 0, '', 'category', $tmptitle); + $moreforfilter .= ' '; + $moreforfilter .= $form->textwithpicto('', $langs->trans('UseOrOperatorForCategories') . ' : ' . $tmptitle, 1, 'help', '', 0, 2, 'tooltip_cat_pro'); // Tooltip on click $moreforfilter .= ''; }