when cities are written in Latin for example "Moscow". the jump menu works well by retrieving the right deals for the city.
But if i write it in Russian i.e (Москва) the result is false, meaning it bring the deals of all cities...

I did firebug and found out the url of Russian characters is converted to strange numbers

<option value="f027df09a334cf3e654a417aa17cdb33::/mysite/deals/%D0%B4%D0%BE%D0%B4%D0%BE%D0%BC%D0%B0">  
       Москва  </option>

but without russian the result is

<option value="4419c399e7ee0cbd1c85ce89ad8fef33::/mysite/deals/Moscow">  
          Moscow  </option>

So how do i correct this ?

#7 opendeals-cyrilliccharacters-1466670-6.patch118.77 KBnchar
Members fund testing for the Drupal project. Drupal Association Learn more


mrcniceguy’s picture

I dont know if its good idea but now it is working after adding a line in views_plugin_style_jump_menu.inc file
just after $path = url($url_options['path'], $url_options);
i added this


and now my urls are like this

<option value="773b222a704d56d7773a4e3b804596fd::/mysite/deals/москва">  москва  </option>
yannisc’s picture

Status: Active » Needs review

Is this finally a working solution for you?

mrcniceguy’s picture

AS i said, am not sure if its best solution.
But it is working for me now.

yannisc’s picture

Status: Needs review » Needs work

I confirm that the bug also exists with Greek city names.

This solution needs to hack the views module. We should find a way to make it work without having to hack modules or core.

yannisc’s picture

Priority: Normal » Major
yannisc’s picture

Status: Needs work » Fixed

We changed the way taxonomy filters deals to use taxonomy id instead of taxonomy name, so now it works with non-latin cities as well. Committed!

nchar’s picture

That was a difficult problem to solve. To fix this if you have already installed opendeals you need to apply the following patch at /profiles/opendeals. Then navigate to Structure > Features and revert "Opendeals Views" feature.

WARNING: If you have changed the settings of at least one opendeals' view then you must NOT revert this feature because you will lose your changes and you should change the view "cities_list" manually. Use a bare opendeals installation to view the changes.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.