WIP: Backup upload

This commit is contained in:
Jose Gonzalez 2020-11-13 11:36:06 +01:00
parent 064ae49d56
commit 08cc67696a
1 changed files with 26 additions and 10 deletions

View File

@ -546,16 +546,26 @@ class DiscoveryTaskList extends HTML
true
);
} else if ($task['review_mode'] == DISCOVERY_STANDARD) {
if ($task['status'] <= 0
&& empty($task['summary']) === false
) {
$data[5] = __('Done');
} else if ($task['utimestamp'] == 0
&& empty($task['summary'])
) {
$data[5] = __('Not started');
if ($task['type'] === DISCOVERY_APP_VMWARE) {
if ($task['status'] <= 0) {
$data[5] == __('Done');
} else if ($task['status'] > 0 && $task['utimestamp'] == 0) {
$data[5] == __('Pending');
} else {
$data[5] == __('Not started');
}
} else {
$data[5] = __('Pending');
if ($task['status'] <= 0
&& empty($task['summary']) === false
) {
$data[5] = __('Done');
} else if ($task['utimestamp'] == 0
&& empty($task['summary'])
) {
$data[5] = __('Not started');
} else {
$data[5] = __('Pending');
}
}
} else {
if ($task['status'] <= 0
@ -1201,8 +1211,14 @@ class DiscoveryTaskList extends HTML
// Header information.
if ((int) $task['status'] <= 0 && empty($summary)) {
if ($task['type'] == DISCOVERY_APP_VMWARE) {
$outputMessage = __('Task completed.');
} else {
$outputMessage = __('This task has never executed');
}
$output .= ui_print_info_message(
__('This task has never executed'),
$outputMessage,
'',
true
);