From e8c3eb74730171a0f997708d36cbcf9994cab217 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 20 Aug 2015 14:51:28 +0200 Subject: [PATCH] Clear cron errors on change of background job mode * fixes #18454 --- settings/js/admin.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/settings/js/admin.js b/settings/js/admin.js index aa228e76be..80d3dff290 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'); } } });