MOBILE-2431 calendar: Fix update event notification time

main
Dani Palou 2018-06-19 16:38:01 +02:00
parent 7829ba2c8f
commit 28a02ab3c1
2 changed files with 2 additions and 4 deletions

View File

@ -592,9 +592,8 @@ export class AddonCalendarProvider {
return Promise.reject(null);
}
event.notificationtime = time;
return site.getDb().insertRecord(AddonCalendarProvider.EVENTS_TABLE, event).then(() => {
return site.getDb().updateRecords(AddonCalendarProvider.EVENTS_TABLE, {notificationtime: time}, {id: event.id})
.then(() => {
return this.scheduleEventNotification(event, time);
});
});

View File

@ -32,7 +32,6 @@
"gradehighest": "Highest grade",
"grademethod": "Grading method",
"gradesofar": "{{$a.method}}: {{$a.mygrade}} / {{$a.quizgrade}}.",
"hasdatatosync": "This quiz has offline data to be synchronised.",
"marks": "Marks",
"mustbesubmittedby": "This attempt must be submitted by {{$a}}.",
"noquestions": "No questions have been added yet",