MOBILE-2431 calendar: Fix update event notification time
This commit is contained in:
		
							parent
							
								
									7829ba2c8f
								
							
						
					
					
						commit
						28a02ab3c1
					
				@ -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);
 | 
			
		||||
            });
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
@ -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",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user