on line 791 (file i18n_menu.module) add condition
$query->condition('m.path', 'IS NOT NULL');
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | i18n_menu_fix_sql-1203224-4705144.patch | 527 bytes | Xaber |
on line 791 (file i18n_menu.module) add condition
$query->condition('m.path', 'IS NOT NULL');
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | i18n_menu_fix_sql-1203224-4705144.patch | 527 bytes | Xaber |
Comments
Comment #1
Xaber commentedComment #2
jose reyero commentedWhy? Where? (line does not exist)
Comment #3
Xaber commentedNow in my file i18n_menu.module on the end of file a have this code
What is the problem?
If you add more than one language (in my case 4: English, French, German and Russian), and by default not English, there is a problem switching to a language which is set as the default language.
When selecting from the database returns a string, from which eventually formed the wrong URL, which is required in reality.
For example, when I'm on the home page, activate the English version of the site - I'm staying on the main page, with English translation of an activated interface. If I try to change to another language, except for the default language - everything will be fine (although to be honest - a stress test were not satisfied). And if I want to switch to the default language does not get home, and some or the other (usually the 1st page of the menu).
Comment #4
Xaber commentedComment #5
jose reyero commentedSorry but I still don't understand the issue. Would you mind filling your example with real data? (paths, links, menu items, etc)
Also, about the patch, looks like it would be the same as replacing the LEFT JOIN with an INNER JOIN (so no null rows are returned from the second table) and I'm not sure that would work for all cases.
Comment #6
jose reyero commented