[develop | DONE | CHANGED]: refineResults.class.ts: Missing change from pre-previous commit for static filters.
This commit is contained in:
parent
d15ce5522e
commit
0768248bde
|
@ -6,7 +6,7 @@ import { SearchFields} from '../../utils/properties/searchFields';
|
||||||
export class RefineResultsUtils {
|
export class RefineResultsUtils {
|
||||||
|
|
||||||
|
|
||||||
public static parse (data, fields:string[], entityType:string, usedBy: string="search"):Filter[] {
|
public static parse (data, fields:string[], entityType:string, usedBy: string="search", staticFilter: boolean = false):Filter[] {
|
||||||
// var data = this.json.refineReuslts;
|
// var data = this.json.refineReuslts;
|
||||||
|
|
||||||
var searchFields:SearchFields = new SearchFields();
|
var searchFields:SearchFields = new SearchFields();
|
||||||
|
@ -39,6 +39,10 @@ export class RefineResultsUtils {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(staticFilter) {
|
||||||
|
filter.countAllValues = filter.values.length;
|
||||||
|
}
|
||||||
|
// filter.values.sort(function(a, b){return b.number - a.number})
|
||||||
|
|
||||||
filters.push(filter);
|
filters.push(filter);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue