aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
Diffstat (limited to 'settings')
-rw-r--r--settings/js/admin.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index aa228e76be7..80d3dff2901 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -46,6 +46,8 @@ $(document).ready(function(){
var mode = $(this).val();
if (mode === 'ajax' || mode === 'webcron' || mode === 'cron') {
OC.AppConfig.setValue('core', 'backgroundjobs_mode', mode);
+ // clear cron errors on background job mode change
+ OC.AppConfig.deleteKey('core', 'cronErrors');
}
}
});