MOBILE-2915 data: Trim url field

main
Pau Ferrer Ocaña 2019-03-28 11:04:39 +01:00
parent a36a54cd84
commit c0e95f644a
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export class AddonModDataFieldUrlHandler extends AddonModDataFieldTextHandler {
{ {
fieldid: field.id, fieldid: field.id,
subfield: '0', subfield: '0',
value: inputData[fieldName] || '' value: (inputData[fieldName] && inputData[fieldName].trim()) || ''
} }
]; ];
} }