[develop | DONE | FIXED]: [BUG FIX] searchDataProviders.component.ts & searchOrganizations.component.ts & searchProjects.component.ts: In method "filterRequestedAll()" (when clicking on view all of a search filter) get filters from the 3rd position of response, not the 2nd.
This commit is contained in:
parent
110c2ab4b3
commit
43b1882956
|
@ -370,7 +370,7 @@ export class SearchDataProvidersComponent {
|
||||||
this.searchFiltersSub = this._searchDataProvidersService.advancedSearchDataproviders(this.searchPage.getSearchAPIQueryForAdvancedSearhFields(), 1, 0, properties, fieldsStr, [oldFilter.filterId], this.refineQuery).subscribe(
|
this.searchFiltersSub = this._searchDataProvidersService.advancedSearchDataproviders(this.searchPage.getSearchAPIQueryForAdvancedSearhFields(), 1, 0, properties, fieldsStr, [oldFilter.filterId], this.refineQuery).subscribe(
|
||||||
// this.searchFiltersSub = this._refineFieldsResultsService.getAllRefineFieldResultsByFieldName(oldFilter.filterId, this.entityType, this.properties, this.refineQuery).subscribe(
|
// this.searchFiltersSub = this._refineFieldsResultsService.getAllRefineFieldResultsByFieldName(oldFilter.filterId, this.entityType, this.properties, this.refineQuery).subscribe(
|
||||||
res => {
|
res => {
|
||||||
let filter: Filter = res[1][0];
|
let filter: Filter = res[2][0];
|
||||||
if(filter.values.length == 0) {
|
if(filter.values.length == 0) {
|
||||||
filter = oldFilter;
|
filter = oldFilter;
|
||||||
filter.countAllValues = 0;
|
filter.countAllValues = 0;
|
||||||
|
|
|
@ -329,7 +329,7 @@ export class SearchOrganizationsComponent {
|
||||||
this.searchFiltersSub = this._searchOrganizationsService.advancedSearchOrganizations(this.searchPage.getSearchAPIQueryForAdvancedSearhFields(), 1, 0, properties, fieldsStr, [oldFilter.filterId], this.refineQuery).subscribe(
|
this.searchFiltersSub = this._searchOrganizationsService.advancedSearchOrganizations(this.searchPage.getSearchAPIQueryForAdvancedSearhFields(), 1, 0, properties, fieldsStr, [oldFilter.filterId], this.refineQuery).subscribe(
|
||||||
// this.searchFiltersSub = this._refineFieldsResultsService.getAllRefineFieldResultsByFieldName(oldFilter.filterId, "organization", this.properties, this.refineQuery).subscribe(
|
// this.searchFiltersSub = this._refineFieldsResultsService.getAllRefineFieldResultsByFieldName(oldFilter.filterId, "organization", this.properties, this.refineQuery).subscribe(
|
||||||
res => {
|
res => {
|
||||||
let filter: Filter = res[1][0];
|
let filter: Filter = res[2][0];
|
||||||
if(filter.values.length == 0) {
|
if(filter.values.length == 0) {
|
||||||
filter = oldFilter;
|
filter = oldFilter;
|
||||||
filter.countAllValues = 0;
|
filter.countAllValues = 0;
|
||||||
|
|
|
@ -358,7 +358,7 @@ export class SearchProjectsComponent {
|
||||||
this.searchFiltersSub = this._searchProjectsService.advancedSearchProjects(this.searchPage.getSearchAPIQueryForAdvancedSearhFields(), 1, 0, properties, fieldsStr, [oldFilter.filterId], this.refineQuery).subscribe(
|
this.searchFiltersSub = this._searchProjectsService.advancedSearchProjects(this.searchPage.getSearchAPIQueryForAdvancedSearhFields(), 1, 0, properties, fieldsStr, [oldFilter.filterId], this.refineQuery).subscribe(
|
||||||
// this.searchFiltersSub = this._refineFieldsResultsService.getAllRefineFieldResultsByFieldName(oldFilter.filterId, "project", this.properties, this.refineQuery).subscribe(
|
// this.searchFiltersSub = this._refineFieldsResultsService.getAllRefineFieldResultsByFieldName(oldFilter.filterId, "project", this.properties, this.refineQuery).subscribe(
|
||||||
res => {
|
res => {
|
||||||
let filter: Filter = res[1][0];
|
let filter: Filter = res[2][0];
|
||||||
if(filter.values.length == 0) {
|
if(filter.values.length == 0) {
|
||||||
filter = oldFilter;
|
filter = oldFilter;
|
||||||
filter.countAllValues = 0;
|
filter.countAllValues = 0;
|
||||||
|
|
Loading…
Reference in New Issue