Searching (filter) on the issues queue does not work as expected.
While searching the issue queue of the "Site verification" module I came across the following bug. When I ask exclusively for only 6.x issues, I somehow get 7.x.dev issues too.
See attached image or use this url:
http://drupal.org/project/issues/site_verify?text=&status=All&priorities...

CommentFileSizeAuthor
Drupal_Issues_Error.JPG192.27 KBwavesailor

Comments

avpaderno’s picture

Title: Searching the issues queue does not work as expected. » Filtering the issue to show only 6.x issues shows also 7.x issues
Component: Drupal services » Project problem

I can confirm the issue, which is not present when you filter the issues to show only 6.x-dev issues.

avpaderno’s picture

Priority: Normal » Minor

This actually doesn't happen with other modules (e.g., Book access) that have issues for 6.x and 7.x branches.

sreynen’s picture

Project: Drupal.org site moderators » Project
Version: » 6.x-1.0-alpha5
Component: Project problem » Issues
Issue tags: -filter, -issues, -issue queue

I can confirm the link is still showing the wrong issues. I believe this is a project.module issue, so moving it there.

dww’s picture

Project: Project » Project issue tracking
Priority: Minor » Normal

At first I thought this might have been corrupted data on d.o (since all this series stuff is based on release nodes and taxonomy values and such, not just string matching version strings). But upon a closer inspection, the problem is that the views handler providing this filter isn't paying attention to node revisions. Since the site_verify 7.x-1.x-dev release node was once tagged for 6.x (back before the Git migration), the query from the filter is getting confused. The bug is in project_issue/views/handlers/project_issue_handler_filter_issue_version.inc:

          $query = db_query("SELECT td.name, td.tid, tn.nid FROM {term_data} td INNER JOIN {term_node} tn ON td.tid = tn.tid WHERE tn.tid IN ($tid_placeholders) AND tn.nid IN ($nid_placeholders) ORDER BY td.weight", $query_args);

The last WHERE clause needs to be effectively AND tn.vid IN ($node_vid_placeholders) with the corresponding change to where we're now initializing $nid_placeholders to actually give us $node_vid_placeholders.

Anyone feel like turning this into a patch?

avpaderno’s picture

Version: 6.x-1.0-alpha5 » 6.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, which is for a not supported Drupal version.