22582bd1 by Adam Heath

Support year facets when applying query parameters.

1 parent 2a1c9946
...@@ -71,7 +71,7 @@ define(function(require) { ...@@ -71,7 +71,7 @@ define(function(require) {
71 if (impl) { 71 if (impl) {
72 if (impl instanceof QueryTextField) { 72 if (impl instanceof QueryTextField) {
73 impl.set('query', value, skipOptions); 73 impl.set('query', value, skipOptions);
74 } else if (impl.facetType === 'field' && value) { 74 } else if ((impl.facetType === 'field' || impl.facetType === 'year') && value) {
75 if (field === 'min') { 75 if (field === 'min') {
76 impl.set('queryMin', parseInt(value), skipOptions); 76 impl.set('queryMin', parseInt(value), skipOptions);
77 } else if (field === 'max') { 77 } else if (field === 'max') {
......