MOBILE-2915 data: Trim url field
parent
a36a54cd84
commit
c0e95f644a
|
@ -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()) || ''
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue