Revision 55055
Added by Myrto Koukouli over 5 years ago
datasource-update-form.component.ts | ||
---|---|---|
171 | 171 |
console.log(error); |
172 | 172 |
}, |
173 | 173 |
() => { |
174 |
for (const key in this.datasourceClasses){
|
|
174 |
for (const key of Object.keys(this.datasourceClasses)) {
|
|
175 | 175 |
this.classCodes.push(key); |
176 | 176 |
} |
177 | 177 |
this.getCountries(); |
... | ... | |
280 | 280 |
} else if (this.updateGroup.get('platformName').value) { |
281 | 281 |
this.selectedRepo.typology = this.updateGroup.get('platformName').value; |
282 | 282 |
} |
283 |
this.selectedRepo.officialName = this.updateGroup.get('officialName').value;
|
|
284 |
this.selectedRepo.description = this.updateGroup.get('repoDescription').value;
|
|
283 |
this.selectedRepo.officialName = encodeURI(this.updateGroup.get('officialName').value);
|
|
284 |
this.selectedRepo.description = encodeURI(this.updateGroup.get('repoDescription').value);
|
|
285 | 285 |
this.selectedRepo.countryCode = this.updateGroup.get('country').value; |
286 | 286 |
this.selectedRepo.countryName = this.countries.filter(x => x.code === this.updateGroup.get('country').value)[0].name; |
287 | 287 |
this.selectedRepo.longitude = this.updateGroup.get('longtitude').value; |
288 | 288 |
this.selectedRepo.latitude = this.updateGroup.get('latitude').value; |
289 | 289 |
this.selectedRepo.websiteUrl = this.updateGroup.get('websiteUrl').value; |
290 |
this.selectedRepo.organization = this.updateGroup.get('institutionName').value;
|
|
291 |
this.selectedRepo.englishName = this.updateGroup.get('englishName').value;
|
|
290 |
this.selectedRepo.organization = encodeURI(this.updateGroup.get('institutionName').value);
|
|
291 |
this.selectedRepo.englishName = encodeURI(this.updateGroup.get('englishName').value);
|
|
292 | 292 |
this.selectedRepo.logoUrl = this.updateGroup.get('logoUrl').value; |
293 | 293 |
this.selectedRepo.timezone = this.updateGroup.get('timezone').value; |
294 | 294 |
this.selectedRepo.datasourceClass = this.updateGroup.get('datasourceType').value; |
Also available in: Unified diff
attempt to fix utf-8 issue