From cdab3a568ecd50b338ff9322dba4cbdb4529477a Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Thu, 14 Jun 2012 12:41:19 +0000 Subject: [PATCH] //small fix --- .../default/template/helpers/list/list_action_default.tpl | 2 +- classes/helper/HelperList.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin-dev/themes/default/template/helpers/list/list_action_default.tpl b/admin-dev/themes/default/template/helpers/list/list_action_default.tpl index ebd0ac3ce..c59ad102d 100644 --- a/admin-dev/themes/default/template/helpers/list/list_action_default.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_action_default.tpl @@ -23,6 +23,6 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} - + {$action} \ No newline at end of file diff --git a/classes/helper/HelperList.php b/classes/helper/HelperList.php index f43f99b15..1533330aa 100644 --- a/classes/helper/HelperList.php +++ b/classes/helper/HelperList.php @@ -479,7 +479,7 @@ class HelperListCore extends Helper self::$cache_lang['Default'] = $this->l('Default', 'Helper'); $tpl->assign(array_merge($this->tpl_delete_link_vars, array( - 'href' => Tools::safeOutput($this->currentIndex.'&'.$this->identifier.'='.$id.'&delete'.$this->table.'&token='.($token != null ? $token : $this->token)), + 'href' => Tools::safeOutput($this->currentIndex).'&'.Tools::safeOutput($this->identifier).'='.(int)$id.'&delete'.Tools::safeOutput($this->table).'&token='.Tools::safeOutput(($token != null ? $token : $this->token)), 'action' => self::$cache_lang['Default'], 'name' => Tools::safeOutput($name), )));