//assign var listSkipDelete in list_content.tpl
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
{if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if}
|
||||
>
|
||||
<td class="center">
|
||||
{if $bulk_actions}
|
||||
{if $bulk_actions AND isset($listSkipDelete) AND !in_array($tr.$identifier, $listSkipDelete)}
|
||||
<input type="checkbox" name="{$table}Box[]" value="{$tr.$identifier}" class="noborder" />
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user