From 6184671b5090899e3015ce8f3dff28b21ff6755d Mon Sep 17 00:00:00 2001 From: lLefevre Date: Tue, 4 Oct 2011 14:49:20 +0000 Subject: [PATCH] //assign var listSkipDelete in list_content.tpl --- admin-dev/themes/template/list_content.tpl | 2 +- classes/HelperList.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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'); }