fix: show the message on process finished with errors
This commit is contained in:
parent
5bce09fde8
commit
0c3cbae1dc
|
@ -191,6 +191,9 @@ abstract class Background_Process extends \Tainacan_WP_Background_Process {
|
||||||
if ($status == 'finished') {
|
if ($status == 'finished') {
|
||||||
$params['progress_label'] = __('Process completed','tainacan');
|
$params['progress_label'] = __('Process completed','tainacan');
|
||||||
$params['progress_value'] = 100;
|
$params['progress_value'] = 100;
|
||||||
|
} else if ($status == 'finished-errors') {
|
||||||
|
$params['progress_label'] = __('Process completed with errors','tainacan');
|
||||||
|
$params['progress_value'] = 100;
|
||||||
}
|
}
|
||||||
$wpdb->update(
|
$wpdb->update(
|
||||||
$this->table,
|
$this->table,
|
||||||
|
|
Loading…
Reference in New Issue