VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: ermes on June 22, 2018, 18:58:15 PM

Title: Bug on search system with customfields
Post by: ermes 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.