Search stakeholder: add validateSize() for the parameter of results size
This commit is contained in:
parent
a44b4d40ab
commit
386fe30ff7
|
@ -1 +1 @@
|
|||
Subproject commit 410643a682b184f96982bb228657a16769c622ff
|
||||
Subproject commit 18dd1379ad151d4988d7c58ae63a8ad8bfad5602
|
|
@ -82,12 +82,9 @@ export class SearchStakeholdersComponent {
|
|||
this.keyword = StringUtils.URIDecode(this.keyword);
|
||||
this.searchUtils.page = (params['page'] === undefined) ? 1 : +params['page'];
|
||||
this.searchUtils.sortBy = (params['sortBy'] === undefined) ? '' : params['sortBy'];
|
||||
this.searchUtils.size = (params['size'] === undefined) ? this.searchPage.resultsPerPage : +params['size'];
|
||||
this.searchUtils.validateSize(params['size']);
|
||||
this.searchUtils.baseUrl = this.baseUrl;
|
||||
this.searchPage.searchUtils = this.searchUtils;
|
||||
if (this.searchUtils.size != 5 && this.searchUtils.size != 10 && this.searchUtils.size != 20 && this.searchUtils.size != 50) {
|
||||
this.searchUtils.size = this.searchPage.resultsPerPage;
|
||||
}
|
||||
if (this.searchUtils.sortBy && this.searchUtils.sortBy != "creationdate,descending" && this.searchUtils.sortBy != "creationdate,ascending") {
|
||||
this.searchUtils.sortBy = "";
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 2f572df5783cb32cc84969b75939e45ffce3b424
|
||||
Subproject commit 10dbbb5610afa279837add9be683938e86acd659
|
Loading…
Reference in New Issue