*

cartagena68

  • ***
  • 71 posts
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
« Last Edit: November 08, 2021, 02:22:34 PM by cartagena68 »

Marked as best answer by frosticek on November 08, 2021, 10:19:22 AM
*

MB Themes

Re: osclass v 8.0.0 problem when autocomplete in location input is selected
« Reply #1 on: November 08, 2021, 10:19:17 AM »
@cartagena68
Thank you, being fixed in 8.0.1 ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

cartagena68

  • ***
  • 71 posts
Re: osclass v 8.0.0 problem when autocomplete in location input is selected
« Reply #2 on: November 08, 2021, 02:24:53 PM »
good, glad to help