summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-08-20 14:51:28 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-08-20 14:51:28 +0200
commite8c3eb74730171a0f997708d36cbcf9994cab217 (patch)
tree62515171b53a5217fe2bdee921058ca989233c73 /settings
parentd93bf3548226ab509f075a879ff71768e6b454b9 (diff)
downloadnextcloud-server-e8c3eb74730171a0f997708d36cbcf9994cab217.tar.gz
nextcloud-server-e8c3eb74730171a0f997708d36cbcf9994cab217.zip
Clear cron errors on change of background job mode
* fixes #18454
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');
}
}
});