MOBILE-1927 calendar: Fix error on description sync

main
Pau Ferrer Ocaña 2019-08-12 12:45:20 +02:00
parent 85ef2a8e12
commit 6c0594431d
1 changed files with 5 additions and 0 deletions

View File

@ -248,6 +248,11 @@ export class AddonCalendarSyncProvider extends CoreSyncBaseProvider {
// Try to send the data. // Try to send the data.
const data = this.utils.clone(event); // Clone the object because it will be modified in the submit function. const data = this.utils.clone(event); // Clone the object because it will be modified in the submit function.
data.description = {
text: data.description,
format: 1
};
return this.calendarProvider.submitEventOnline(eventId > 0 ? eventId : undefined, data, siteId).then((newEvent) => { return this.calendarProvider.submitEventOnline(eventId > 0 ? eventId : undefined, data, siteId).then((newEvent) => {
result.updated = true; result.updated = true;
result.events.push(newEvent); result.events.push(newEvent);