filter, node:language

eaposztrof - May 22, 2008 - 21:44
Project:Views
Version:6.x-2.0-beta3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active (needs more info)
Description

the filter, can't work with node:language term.
if i check "english", all node are listed, if i check the secondary language, have no listed data, but i have translated nodes.

here is the pictures:

my language settings are:

    default, with no id: english
    secondary, with "magyar" mark: hungarian

#1

merlinofchaos - May 22, 2008 - 21:56

Can you paste the full query that it generates in both cases for me?

#2

merlinofchaos - May 27, 2008 - 22:36
Status:active» active (needs more info)

#3

yang_yi_cn - May 28, 2008 - 00:21

I have the same problem. My view doesn't involve with any languages. I wrote an English page and published it, the view works at en.demosite.com/view_abc , but fr.demosite.com/view_abc is empty.
However, when I translated the page to French, the fr.demosite.com/view_abc works.

I just wonder will it be better to show English content if there's no translation found?

#4

eaposztrof - June 3, 2008 - 20:23

sorry.. just now i can work with that again.. the problem still there..
here is the query:

Query

SELECT node.nid AS nid,
term_data.name AS term_data_name
FROM node node
LEFT JOIN term_node term_node ON node.vid = term_node.vid
LEFT JOIN term_data term_data ON term_node.tid = term_data.tid
WHERE (node.status <> 0 OR node.uid = ***CURRENT_USER*** or ***ADMINISTER_NODES*** = 1) AND (node.type in ('link')) AND (node.language in ('***CURRENT_LANGUAGE***'))
ORDER BY term_data_name ASC

#5

Pasqualle - July 16, 2008 - 10:53

@eaposztrof, @yang_yi_cn:
do you use the i18n module? if yes then try the latest dev release of i18n module, or try to disable the i18n module..

this could be a problem: #272432: Patch to prevent query rewriting for views

 
 

Drupal is a registered trademark of Dries Buytaert.