Clear cron errors on change of background job mode

* fixes #18454
This commit is contained in:
Morris Jobke 2015-08-20 14:51:28 +02:00
parent d93bf35482
commit e8c3eb7473
1 changed files with 2 additions and 0 deletions

View File

@ -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');
}
}
});