diff --git a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php
index a1fa53ced3..44f8ebf868 100644
--- a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php
+++ b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php
@@ -955,29 +955,42 @@ class DiscoveryTaskList extends HTML
)
) {
if ($ipam === true) {
- $data[9] .= ''.html_print_image(
- 'images/config.png',
- true,
- [
- 'title' => __('Edit task'),
- 'class' => 'invert_filter',
- ]
- ).'';
- $data[9] .= ''.html_print_image(
- 'images/cross.png',
- true,
- [
- 'title' => __('Delete task'),
- 'class' => 'invert_filter',
- ]
- ).'';
+ if (empty($tipam_task_id) === false) {
+ $data[9] .= ''.html_print_image(
+ 'images/config.png',
+ true,
+ [
+ 'title' => __('Edit task'),
+ 'class' => 'invert_filter',
+ ]
+ ).'';
+ $data[9] .= ''.html_print_image(
+ 'images/cross.png',
+ true,
+ [
+ 'title' => __('Delete task'),
+ 'class' => 'invert_filter',
+ ]
+ ).'';
+ } else {
+ $data[9] .= ''.html_print_image(
+ 'images/cross.png',
+ true,
+ [
+ 'title' => __('Delete task'),
+ 'class' => 'invert_filter',
+ ]
+ ).'';
+ }
} else {
// Check if is a H&D, Cloud or Application or IPAM.
$data[9] .= '