Download & Extend

Add "- Open issues -" to status selection on advanced search

Project:Project issue tracking
Version:6.x-1.x-dev
Component:Views integration
Category:feature request
Priority:normal
Assigned:dww
Status:closed (fixed)
Issue tags:drupal.org upgrade

Issue Summary

I love, love, love that the advanced search defaults to showing/searching *all* issues now, rather than just "active" ones. However, there are times when it's useful to search only active issues and currently doing this requires cmd+clicking like 10 items.

The main project listing pages have an "- Open issues-" selection that they default to. Could this same selection be added to advanced search?

Comments

#1

Since this is 'sorta' a regression from pre-D6 drupal.org, tagging appropriately.

#2

Assigned to:Anonymous» dww
Status:active» needs review

Like so?

http://d6.drupal.org/project/issues/search

This actually simplifies the status filter handler code a bit, since I was going out of my way to hide this option in various cases. ;)

While I was at it, I made the following changes:

A) The underlying value is now capitalized as "Open" to be consistent with core view's "All" value.

B) The user-facing label is now <Open issues> to match core view's <Any> label.

C) The <Any> value is always present, even on multi-selects, to address the concern at #379362-10: Add "Advanced search" version of my projects page.

D) Cleaned up some of the internal code to make a little more sense.

Thoughts?

AttachmentSize
382888-2.open-and-any-status.patch 5.58 KB

#3

Here's a patch that's less lethal for kittens. ;)

A) retained

B) Moved to a views issue: #383242: Change "<Any>" to "- Any -" in exposed filters

C) That was poorly conceived, and belongs at #379362: Add "Advanced search" version of my projects page if it should happen at all. No longer here.

D) retained

http://d6.drupal.org/project/issues/search

AttachmentSize
382888-3.open-status.patch 6.46 KB

#4

Status:needs review» fixed

Committed and deployed:

http://drupal.org/project/issues/search

#5

Awesome! Thanks a lot! :D

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.