fix: show the message on process finished with errors

This commit is contained in:
vnmedeiros 2021-04-07 12:33:33 -03:00
parent 5bce09fde8
commit 0c3cbae1dc
1 changed files with 3 additions and 0 deletions

View File

@ -191,6 +191,9 @@ abstract class Background_Process extends \Tainacan_WP_Background_Process {
if ($status == 'finished') {
$params['progress_label'] = __('Process completed','tainacan');
$params['progress_value'] = 100;
} else if ($status == 'finished-errors') {
$params['progress_label'] = __('Process completed with errors','tainacan');
$params['progress_value'] = 100;
}
$wpdb->update(
$this->table,