diff --git a/ng2-components/ng2-alfresco-core/src/services/AlfrescoAuthentication.service.ts b/ng2-components/ng2-alfresco-core/src/services/AlfrescoAuthentication.service.ts index 68483d12f4..92d0083990 100644 --- a/ng2-components/ng2-alfresco-core/src/services/AlfrescoAuthentication.service.ts +++ b/ng2-components/ng2-alfresco-core/src/services/AlfrescoAuthentication.service.ts @@ -41,12 +41,12 @@ export class AlfrescoAuthenticationService { hostBpm: this.alfrescoSetting.bpmHost }); - alfrescoSetting.bpmHostSubject.subscribe((value) => { - this.alfrescoApi.config.hostBpm = value; + alfrescoSetting.bpmHostSubject.subscribe((ecmHost) => { + this.alfrescoApi.config.changeEcmHost(ecmHost); }); - alfrescoSetting.ecmHostSubject.subscribe((value) => { - this.alfrescoApi.config.hostEcm = value; + alfrescoSetting.ecmHostSubject.subscribe((bpmHost) => { + this.alfrescoApi.config.changeBpmHost(bpmHost); }); alfrescoSetting.providerSubject.subscribe((value) => {