From 32eca6e67fbebee8aa76170f8cb7bb7430251ed7 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Thu, 3 Nov 2011 16:10:32 +0000 Subject: [PATCH] // fix list checkbox display for bulk actions --- admin-dev/themes/template/helper/list/list_content.tpl | 8 ++++---- admin-dev/themes/template/helper/list/list_header.tpl | 2 +- classes/HelperList.php | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/admin-dev/themes/template/helper/list/list_content.tpl b/admin-dev/themes/template/helper/list/list_content.tpl index 68c32d307..0a03de5bc 100644 --- a/admin-dev/themes/template/helper/list/list_content.tpl +++ b/admin-dev/themes/template/helper/list/list_content.tpl @@ -30,11 +30,11 @@ {if $index is odd}class="alt_row"{/if} {if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if} > - {if isset($tr.has_bulk_actions) && $tr.has_bulk_actions} - + + {if {$has_bulk_actions}} - - {/if} + {/if} + {foreach $fields_display AS $key => $params} - {if $delete} + {if $has_bulk_actions} -- {/if} diff --git a/classes/HelperList.php b/classes/HelperList.php index c42d9e35a..a47a76dfd 100644 --- a/classes/HelperList.php +++ b/classes/HelperList.php @@ -215,11 +215,11 @@ class HelperListCore extends Helper else if (method_exists($this, $method_name)) $this->_list[$index][$action] = $this->$method_name($token, $id); - // At least one bulk action is possible for this row - $this->_list[$index]['has_bulk_actions'] = true; } } + // @todo skip action for bulk actions + // $this->_list[$index]['has_bulk_actions'] = true; foreach ($this->fieldsDisplay as $key => $params) {