//Fixed bug var list_skip_actions in list_content.tpl
This commit is contained in:
1 parent
17ec57e135
commit
64b9047b6d
2 files changed
+11
-3
No files matched your search
@@ -31,8 +31,16 @@
|
|||||||
{if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if}
|
{if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if}
|
||||||
>
|
>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
{if $bulk_actions AND array_key_exists('delete', $list_skip_actions) AND !in_array($tr.$identifier, $list_skip_actions['delete'])}
|
{if $bulk_actions}
|
||||||
<input type="checkbox" name="{$table}Box[]" value="{$tr.$identifier}" class="noborder" />
|
{assign var=bulkActionPossible value=true}
|
||||||
|
{foreach $list_skip_actions as $key => $value}
|
||||||
|
{if in_array($tr.$identifier, $value) == true}
|
||||||
|
{assign var=bulkActionPossible value=false}
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
{if $bulkActionPossible == true}
|
||||||
|
<input type="checkbox" name="{$table}Box[]" value="{$tr.$identifier}" class="noborder" />
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
{foreach $fields_display AS $key => $params}
|
{foreach $fields_display AS $key => $params}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class AdminShopUrlControllerCore extends AdminController
|
|||||||
$this->className = 'ShopUrl';
|
$this->className = 'ShopUrl';
|
||||||
$this->lang = false;
|
$this->lang = false;
|
||||||
$this->requiredDatabase = true;
|
$this->requiredDatabase = true;
|
||||||
$this->_listSkipDelete = array(1);
|
$this->addRowActionSkipList('delete', array(1));
|
||||||
|
|
||||||
$this->addRowAction('edit');
|
$this->addRowAction('edit');
|
||||||
$this->addRowAction('delete');
|
$this->addRowAction('delete');
|
||||||
|
|||||||
Reference in new issue
Block a user