From 150c6e01300519ec07ebabcdf829de5fe80321b0 Mon Sep 17 00:00:00 2001 From: Vincent Augagneur Date: Mon, 21 Oct 2013 14:51:14 +0200 Subject: [PATCH] [+] CORE : helperList action can be rendered from module classe --- classes/helper/HelperList.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/helper/HelperList.php b/classes/helper/HelperList.php index 2d7ff0cda..d95e94399 100644 --- a/classes/helper/HelperList.php +++ b/classes/helper/HelperList.php @@ -210,6 +210,8 @@ class HelperListCore extends Helper if (method_exists($this->context->controller, $method_name)) $this->_list[$index][$action] = $this->context->controller->$method_name($this->token, $id, $name); + else if ($this->module instanceof Module && method_exists($this->module, $method_name)) + $this->_list[$index][$action] = $this->module->$method_name($this->token, $id, $name); elseif (method_exists($this, $method_name)) $this->_list[$index][$action] = $this->$method_name($this->token, $id, $name); }