Closed (won't fix)
Project:
Internationalization
Version:
5.x-2.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Apr 2009 at 20:20 UTC
Updated:
18 May 2010 at 08:34 UTC
I found the filter was not being applied due to a check in i18n.module.
// If language conditions already there, get out
if (preg_match("/i18n/", $query)) return;This blocked execution of the where-modifying code just below it. I removed it and protected the JOIN addition below so it's not added twice (severe breakage ensued).
I do not know if this is a big no-no but I thought I'd put it out in the open. It has the possibility of adding the WHERE parts twice... I attach the (tiny) diff.
| Comment | File | Size | Author |
|---|---|---|---|
| i18n-2.5.x-where-not-applied-in-views.diff | 208 bytes | corfiot |
Comments
Comment #1
jose reyero commentedIf we already have an i18n filter, we don't want to filter twice.