Author Topic: Bug on search system with customfields  (Read 346 times)


  • Jr. Member
  • **
  • Posts: 58
Bug on search system with customfields
« on: June 22, 2018, 18:58:15 pm »
Hi forum, i have found a bug in VM 3.2.14. I know that the search on custom fields is "beta" so i want to show a little bug in VirtueMartModelProduct. If you create a custom field as string type and you set it as "searchable", when you try to use it in search form the selectbox return the index value (&customfields[16]=1) but in the product model (exactly into sortSearchListQuery function) the value 1 it's passed as keyword for pf.`customfield_value` when it store the current string value (ex: "With ribbon"). So you can fix it by modify the options value of selectbox. It not had to send the index but the field value.