diff --git a/admin-dev/themes/template/list_content.tpl b/admin-dev/themes/template/list_content.tpl
index ea2251828..09f5652d3 100644
--- a/admin-dev/themes/template/list_content.tpl
+++ b/admin-dev/themes/template/list_content.tpl
@@ -31,7 +31,7 @@
{if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if}
>
- {if $bulk_actions}
+ {if $bulk_actions AND isset($listSkipDelete) AND !in_array($tr.$identifier, $listSkipDelete)}
{/if}
|
diff --git a/classes/HelperList.php b/classes/HelperList.php
index 27e03d0af..c0dac7976 100644
--- a/classes/HelperList.php
+++ b/classes/HelperList.php
@@ -221,6 +221,12 @@ class HelperListCore extends Helper
}
}
+ if(isset($this->_listSkipDelete))
+ {
+ info($this->_listSkipDelete);
+ $this->context->smarty->assign('listSkipDelete', $this->_listSkipDelete);
+ }
+
$this->context->smarty->assign(array(
'is_dnd_identifier' => $this->is_dnd_identifier,
'color_on_bg' => $this->colorOnBackground,
@@ -236,7 +242,6 @@ class HelperListCore extends Helper
'view' => $this->view,
'edit' => $this->edit,
'has_actions' => $has_actions,
-
));
return $this->context->smarty->fetch(_PS_ADMIN_DIR_.'/themes/template/list_content.tpl');
}