diff --git a/dmp-frontend/src/app/projects/projects.component.ts b/dmp-frontend/src/app/projects/projects.component.ts index bab4aacf8..eab4fe99b 100644 --- a/dmp-frontend/src/app/projects/projects.component.ts +++ b/dmp-frontend/src/app/projects/projects.component.ts @@ -130,28 +130,7 @@ getProjects(muted? : boolean){ ); } -/* -getDMPs(){ - this.serverService.listDmpsLabelID().subscribe( - response =>{ - console.log("response"); - console.log(response); - //let params = new Param(); - response.forEach((dmp) => { - let params = new Param(); - params.key = dmp.id; - params.value = dmp.label; - this.datasetDropDown.options.push(params); - }, - error => { - } - ); - - } - ) -} -*/ showDatasets(){ //dmpId, event //this.dataSetVisibe = true; @@ -187,7 +166,8 @@ SaveProject(){ } editRow(item, event){ - this.project = item; //this will have id - that defines whether it's an update or not + this.project = Object.assign({}, item); //this will have id - that defines whether it's an update or not + this.project.creationUser = {"id":this.project.creationUser.id}; $("#newEditProjectModal").modal("show"); return false;