summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-21 10:52:09 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-21 10:52:09 +0200
commitf5bbe727dfa624c8201f2973900390435234f323 (patch)
tree8f6849d156084a577dc87bf2be4859cdd10d4897
parenta930fe586419f4aa8088edbfa3dda6502d06363d (diff)
parente8c3eb74730171a0f997708d36cbcf9994cab217 (diff)
downloadnextcloud-server-f5bbe727dfa624c8201f2973900390435234f323.tar.gz
nextcloud-server-f5bbe727dfa624c8201f2973900390435234f323.zip
Merge pull request #18456 from owncloud/fix-unrelated-cron-errors
Clear cron errors on change of background job mode
-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');
}
}
});