Osclass Support Forums

General osclass questions => Report bug => Topic started by: cartagena68 on November 07, 2021, 11:34:15 PM

Title: osclass v 8.0.0 problem when autocomplete in location input is selected
Post by: cartagena68 on November 07, 2021, 11:34:15 PM
I noticed that when i select autocomplete in location input in theme settings if i publish a listing when i input the region or city i get this error "Please enter non more than 0 characters" as you can see in the attachment.
Solution is in oc-includes/osclass/frm/Item.form.class.php the functions
region_text
and
city_text
you need to change from this
Code: [Select]
parent::generic_input_text( 'region', isset($item['s_region']) ? $item['s_region'] : null, false);to this
Code: [Select]
parent::generic_input_text( 'region', isset($item['s_region']) ? $item['s_region'] : null, null, false);adding the second null will fix the problem
also in city_text need to be modified
Title: Re: osclass v 8.0.0 problem when autocomplete in location input is selected
Post by: MB Themes on November 08, 2021, 10:19:17 AM
@cartagena68
Thank you, being fixed in 8.0.1 ;)
Title: Re: osclass v 8.0.0 problem when autocomplete in location input is selected
Post by: cartagena68 on November 08, 2021, 02:24:53 PM
good, glad to help