From 9459e944c51dc9e62a4ae32019839ebc2f0c7d3d Mon Sep 17 00:00:00 2001 From: argirok Date: Fri, 17 Dec 2021 14:06:05 +0200 Subject: [PATCH] in method getAllpages() add again optional parameter pid to get all pages of portaltype community and the specific pid --- services/help-content.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/help-content.service.ts b/services/help-content.service.ts index 7f0635a7..4fd3d156 100644 --- a/services/help-content.service.ts +++ b/services/help-content.service.ts @@ -252,8 +252,8 @@ export class HelpContentService { .pipe(catchError(this.handleError)); } // End of replacing part of getPages (now getAllPages) - - getAllPages(helpContentUrl:string) {//,pid:string,with_positions:boolean=null) { +//TODO double check with konstantina - there is no param that we are asking the community pages. without pid we get all portalTypes + getAllPages(helpContentUrl:string, pid:string = null) {//with_positions:boolean=null) { // let parameters: string = ""; // if(pid || with_positions == true || with_positions == false) { // parameters = "?"; @@ -264,7 +264,7 @@ export class HelpContentService { // parameters += "&with_positions="+with_positions; // } // } - return this.http.get>(helpContentUrl + 'page') + return this.http.get>(helpContentUrl + 'page' + (pid?"pid="+pid:"")) //.map(res => > res.json()) .pipe(catchError(this.handleError)); }