Fixed regression problem

This commit is contained in:
mauriziovitale84
2016-06-21 10:16:26 +01:00
parent 14449da0ba
commit 75a533bcde
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ export class UploadButtonComponent {
* @returns {string}
*/
private getErrorMessage(response: any): string {
if (response.body.error.statusCode === ERROR_FOLDER_ALREADY_EXIST ) {
if (response.body && response.body.error.statusCode === ERROR_FOLDER_ALREADY_EXIST ) {
let errorMessage: any;
errorMessage = this.translate.get('FILE_UPLOAD.MESSAGES.FOLDER_ALREADY_EXIST');
return errorMessage.value;

View File

@@ -115,7 +115,7 @@ export class UploadService {
* @returns {AlfrescoApi.ApiClient}
*/
private getAlfrescoClient() {
return AlfrescoApi.getClientWithTicket(this.getBaseUrl(), this.getAlfrescoTicket());
return AlfrescoApi.getClientWithTicket(this.settings.getApiBaseUrl(), this.getAlfrescoTicket());
}
/**