Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
I've just updated to last DEV version : Views 6.x-2.x-dev (2010-Mar-17)
I didn't modified my view and it doesn't work anymore.
This is a view with argument on Taxonomy Vocabulary ID and Taxonomy Term ID.
Taxonomy Vocabulary ID argument works. In preview I can see argument value in SQL.
But for Taxonomy Term ID argument SQL is always NULL.
Arguments : hotel/3/6
SELECT node.nid AS nid,
node.language AS node_language,
node.title AS node_title
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
LEFT JOIN vocabulary vocabulary ON term_data.vid = vocabulary.vid
WHERE (node.status <> 0) AND (node.type = 'hotel') AND (vocabulary.vid = '3') AND (term_node.tid IS NULL)
Comment | File | Size | Author |
---|---|---|---|
#5 | views-argument-fix.patch | 476 bytes | dawehner |
#2 | myview.txt | 7.45 KB | srobert72 |
Comments
Comment #1
dawehnercan you export the view?
The taxonomy view worked fine here.
Comment #2
srobert72 CreditAttribution: srobert72 commentedYes sure, here it is.
Comment #3
tomtom122 CreditAttribution: tomtom122 commentedHi @all,
i have the same issue.
Thx.
Tom
Comment #4
dawehnerUpdate status
Comment #5
dawehnerHere is a patch.
Classical logical problem
Comment #6
srobert72 CreditAttribution: srobert72 commentedThat's it !
I tested your patch and now it works correctly.
Thank you.
Comment #7
dawehnerThis was my fault in the patch. The bug was introduced by myself
Comment #8
srobert72 CreditAttribution: srobert72 commentedIt's only those who do nothing that make no mistakes :-)
Thank you for your work.
Comment #9
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted to all branches. Thanks!