Merge pull request #18456 from owncloud/fix-unrelated-cron-errors

Clear cron errors on change of background job mode
This commit is contained in:
Thomas Müller 2015-08-21 10:52:09 +02:00
commit f5bbe727df
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ $(document).ready(function(){
var mode = $(this).val(); var mode = $(this).val();
if (mode === 'ajax' || mode === 'webcron' || mode === 'cron') { if (mode === 'ajax' || mode === 'webcron' || mode === 'cron') {
OC.AppConfig.setValue('core', 'backgroundjobs_mode', mode); OC.AppConfig.setValue('core', 'backgroundjobs_mode', mode);
// clear cron errors on background job mode change
OC.AppConfig.deleteKey('core', 'cronErrors');
} }
} }
}); });