diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index d4157ac59c0..f149cc85e4a 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -11313,6 +11313,13 @@ class Form '; + // Convert $arrayoffiltercriterias into a json object that can be used in jquery to build the search component dynamically + $arrayoffiltercriterias_json = json_encode($arrayoffiltercriterias); + $ret .= ''; + + $arrayoffilterfieldslabel = array(); foreach ($arrayoffiltercriterias as $key => $val) { $arrayoffilterfieldslabel[$key]['label'] = $val['label']; @@ -11356,6 +11363,19 @@ class Form $ret .= $form->selectDate(($dateOne ? $dateOne : -1), 'dateone', 0, 0, 1, '', 1, 0, 0, '', '', '', '', 1, ''); $ret .= ''; + // Value selector (will be populated dynamically) based on search_filter_field value if a selected value has an array of values + $ret .= ''; + $ret .= ''; + $ret .= ''; $ret .= '