# HG changeset patch # User RĂ©mi Cardona # Date 1413800593 -7200 # Node ID 832a2a0b7bd2f41b0bed03d356edf50ab0c2b8fc # Parent 326fbc5c92b0520316fccb853c9d5a62c9f31eb8 [facets] Correctly look for inputs of type "hidden" (closes #4502768) jQuery ':hidden' selector looks at CSS visual properties (eg, 'display', 'visibility'). The intent here was probably to look for inputs of type "hidden", which many facets use to store user selection data (eg, FacetRangeWidget). The problem is that regular text inputs (eg the "has_text" facet which has a '') will be picked up by this selector if they are inside a folded facet. Chaos and destruction ensue. diff -r 326fbc5c92b0 -r 832a2a0b7bd2 web/data/cubicweb.facets.js --- a/web/data/cubicweb.facets.js Wed Oct 15 18:23:54 2014 +0200 +++ b/web/data/cubicweb.facets.js Mon Oct 20 12:23:13 2014 +0200 @@ -35,7 +35,7 @@ }); // pick up hidden inputs (required metadata inputs such as 'facets' // but also RangeWidgets) - $form.find('input:hidden').each(function() { + $form.find('input[type="hidden"]').each(function() { names.push(this.name); values.push(this.value); });