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.

Comments

lefnire’s picture

subscribe.

/views/js/dependent.js, line 137 -- if I change it like so, it seems to work:

var rel_num = Drupal.settings.viewsAjax.formRelationships[id].num;
if(typeof rel_num === 'object'){
  rel_num = Drupal.settings.viewsAjax.formRelationships[id].num[0];
}
if (rel_num <= len) {
  // Show if the element if criteria is matched
  object.show(0);
}
else {
  // Otherwise hide
  object.hide(0);
}

Drupal.settings.viewsAjax.formRelationships[id].num is an array on pages with inherited exposed filters, and a number otherwise -- so <= len fails 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 temporarily

theabacus’s picture

Status: Active » Closed (fixed)

Just 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?

chris.p.bailey’s picture

Version: 6.x-2.5 » 6.x-2.6
Status: Closed (fixed) » Active

Just 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.

dharmatech’s picture

We 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 JavaScript

merlinofchaos’s picture

Version: 6.x-2.6 » 7.x-3.x-dev
Status: Active » Patch (to be ported)

Fixed 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.

dawehner’s picture

Status: Patch (to be ported) » Fixed

fixed

Status: Fixed » Closed (fixed)

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