Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 May 2009 at 05:01 UTC
Updated:
9 Jan 2010 at 21:30 UTC
I have two views (gmap and table). The table view is an attachment to the gmap view. When I select 'inherit exposed filters' on the attachment the text areas for the parent exposed filter disappear. The entire filter disappears (as it should) from the attachment.
See the attached pictures.
| Comment | File | Size | Author |
|---|---|---|---|
| inherit_exposed_filters.png | 437.68 KB | russbollesjr | |
| no_filter_inheritance.png | 448.77 KB | russbollesjr |
Comments
Comment #1
lefnire commentedsubscribe.
/views/js/dependent.js, line 137 -- if I change it like so, it seems to work:
Drupal.settings.viewsAjax.formRelationships[id].num is an array on pages with inherited exposed filters, and a number otherwise -- so
<= lenfails on the former. In those cases, alert() has has always shown up as (0=>1, 1=>1) for me, so I'm just grabbing [0], which is probably going to blow up somewhere, but seems to work temporarilyComment #2
theabacus commentedJust FYI, the fix you suggested did work in my circumstance. Problem appears to be fixed in Views 2.6...
Supposed this issue should be closed?
Comment #3
chris.p.bailey commentedJust wanted to chip in...
I've got the same problem using 2.6 so the issue is still present. Your suggested fix appears to work with 2.6.
Comment #4
dharmatech commentedWe also noticed this problem when using Views 2.6 and Views Calc 1.3. The code change above does seem to work. Any ideas on the best way to test where this might break?
#565320: views_calc table breaks numeric filter JavaScriptComment #5
merlinofchaos commentedFixed in 2.x and 3.x for D6. This may or may not need to be ported to the D7 version; the patch doesn't apply but that is not surprising as the .js was significantly reworked.
Comment #6
dawehnerfixed