MDL-71953 calendar: Accessibility improvement for manage subscription
- Create new web services for manage subscription (Update calendar subscription) - Modified delete subscription feature to use Web service. - Midified update subscription feature to use in-place editbale - Delete subscription feature now have a confirmation box before processing. - Fixed some accessibility issues - Used 'Delete' instead of 'Remove' for deleting subscriptions
This commit is contained in:
@@ -60,7 +60,16 @@ class calendar_cron_task extends scheduled_task {
|
||||
mtrace("Updating calendar subscription {$sub->name} in course {$sub->courseid}");
|
||||
try {
|
||||
$log = calendar_update_subscription_events($sub->id);
|
||||
mtrace(trim(strip_tags($log)));
|
||||
mtrace($log['eventsimported'] . ' events were imported');
|
||||
mtrace($log['eventsskipped'] . ' events were skipped');
|
||||
mtrace($log['eventsupdated'] . ' events were updated');
|
||||
mtrace($log['eventsdeleted'] . ' events were deleted');
|
||||
if ($log['haserror']) {
|
||||
mtrace('Failed to add event');
|
||||
foreach ($log['errors'] as $error) {
|
||||
mtrace(trim(strip_tags($error)));
|
||||
}
|
||||
}
|
||||
} catch (\moodle_exception $ex) {
|
||||
mtrace('Error updating calendar subscription: ' . $ex->getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user