Exposed filters showing twice with attachments (bug?)

setfree - February 8, 2009 - 17:21
Project:Views
Version:6.x-2.5
Component:exposed filters
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

I just upgraded to 6.x-2.3 today and also expanded an existing view on a site. The view had one page with an exposed filter. After the upgrade to 2.3 today I also had to add an attachment to the view.

Now the exposed filter is showing up twice. I have rebuilt the view. I've toggled 'inherit exposed filters' on then back off and tried every other thing I could think of. No matter what I do the exposed filters are showing on the attachment when they should not.

Since I only added this feature after the upgrade I do not know if this behavior existed prior.

Can anyone verify if they are experiencing the same behavior in this scenario? Any possible fixes?

Thank you~

AttachmentSize
screenshot.jpg40.21 KB

#1

merlinofchaos - February 10, 2009 - 21:54

You need to either override the filters on the attachment so they are not exposed, or if you want them to synchronize with the primary attachment, select 'inherit exposed filters' which will force the attachment to not display its filters.

#2

setfree - February 11, 2009 - 01:21

Thanks for the reply. That is how I thought the exposed filters with attachments should work however I am seeing different results. Please see the attached screenshot that shows the attachment settings and page preview.

The attachment is set to not inherit exposed filters. I can not override the filters on the attachment because those fields do not exist there. I have tried everything I could think of and at this point have had to resort to disabling the exposed filter feature on the site for now.

I guess what I'd really like to know is if this can be verified to work on another site with similar conditions, or is the problem specific to my setup?

AttachmentSize
screenshot.jpg 79.94 KB

#3

merlinofchaos - February 11, 2009 - 01:34

Go ahead and set inherit exposed filters to YES -- does this change the results?

#4

setfree - February 11, 2009 - 01:36

I've tried that several times with no change in the symptom.

#5

nevets - February 11, 2009 - 18:07

I was trying to get something similar to work today and was also seeing the same problem. In testing I had overridden then removed the filter for the attached display.

So I deleted the attached display, saved the view.

Added a new attachment.

Set Inherit arguments: No
Set Inherit exposed filters: Yes

And redid the argument to show a summary view.

After following these steps it worked.

#6

setfree - February 11, 2009 - 19:39

Thanks for the tip. I tried following as you said and still received the same result. I tried removing to attachment, saving the view and then adding the attachment again with and without inheritance turned on.

It must be something specific to my configuration but I can't figure out what it is...

#7

DonLorenzo - March 3, 2009 - 00:22

Similar problem here.

I have an "Event" type that attempts to produce the same results as the Events module. I created the Event type using the tutorial here: http://www.drupaltherapy.com/node/76

To this I added a Filter to filter on a Taxonomy term. The filter appears twice in the date_browser views display.

I've tinkered with the filter many different ways, but the display always displays two instances of the taxonomy selection in the display.

I have attached a fragment of the generated html showing the two instances of the filter selection thingie.
The theme is 'bluemarine'.

AttachmentSize
view-filters.txt 4.4 KB

#8

dleong - March 12, 2009 - 17:28

Similar problem, except that my exposed filter is on the page display as a Search: search term filter.
My attachment (the glossary view) settings are as follows:

Attachment settings
Inherit arguments: No
Inherit exposed filters: Yes
Position: Before
Attach to: Multiple displays

Any help would be greatly appreciated. Thanks.

AttachmentSize
Picture 1.jpg 12.54 KB
Picture 2.jpg 40.17 KB

#9

gaele - March 17, 2009 - 01:27

Same problem here.

- a view with default, page and block display
- default display has no exposed filters
- page display has three overridden, exposed filters

I added an attachment to the page (Inherit exposed filters: Yes), and the exposed filters turned up twice.

Solution:

I added one of the exposed filters to the attachment. The double filters disappeared.

Perhaps the problem was caused by the page having overridden filters?

#10

George2 - March 18, 2009 - 23:35

exactly the same problem here, and i can confirm that the solution in #9 works - thanks gaele. however, the exposed filter appears above the attachment, so a quick template change of the outer view view display to move the $exposed var below the attachments did the trick.

#11

interX - March 23, 2009 - 10:55

Same issue here. As mentioned in #9, adding an (dummy) exposed filter to the attachment solves the problem.
As I am using a glossary view as attachment display, the exposed filter is not visible there...so I didn't have to hide or move it.

#12

rootwork - March 25, 2009 - 05:46
Category:support request» bug report

Just confirming that this was true for me too. Fix in #9 did the trick.

This does seem like a bug, so I'm changing the category.

#13

Moonshine - March 25, 2009 - 17:02

Hit the same issue. Just another confirmation that #9 is a workaround for exposed filter duplication on attachments.

However I believe this also adds empty url parameters (from the exposed filters) to the attachment link URLs, which in turn causes a problem setting the "active" class on things like a glossary link that's been chosen. So I think the real solution will have to come from not having them duplicated when they are absent from the attachment.

#14

pixelpreview - May 5, 2009 - 07:44

yes i have encoutered the same issue. but i try the solution from #9 but it doesn't work for me.

an another solution, strange perhaps is to override tpl file for your view and to comment the line for exposed filters ... and you have only the filters for attachments that will be present on your page...

it's a strange bug, because in attachment, i don't have any exposed filters and Inherit exposed filters are on "no"

#15

andypost - May 29, 2009 - 02:29
Version:6.x-2.3» 6.x-2.5

Same trouble + cant move attachment higher then filter

#16

graouxx - July 3, 2009 - 15:04

Same problem here

#17

bredi - August 12, 2009 - 23:50

same problem.

fixed by #9 and creating views-view.tpl.php file and rearranging the printing of the filters to below the attachments.

#18

merlinofchaos - November 18, 2009 - 02:31
Status:active» duplicate

Fixed here; http://drupal.org/node/535206#comment-2277812

 
 

Drupal is a registered trademark of Dries Buytaert.