Alsernet2000 Posted June 21, 2016 Share Posted June 21, 2016 Good morning guys,I have a problem in my ModuleAdminController: When I do a renderList, the title of the page (and the title of the list) is wrong, even when the filter is empty (also when you enter the first time in the module). The title appear like this: Filter by Date: a:2:{I:0;s:0:"";I:1;s:0:"";} Looks like it is doing a filtering by default. My ModuleAdminController: class AdminPhotoOrderController extends ModuleAdminController { public function __construct() { $this->bootstrap = true; $this->title = $this->l('Photo Order'); $this->table = 'photo_order'; $this->className = 'PhotoOrderData'; $this->identifier = 'id_photo_order'; $this->_defaultOrderBy = 'date_add'; $this->_defaultOrderWay = 'DESC'; $this->fields_list = $this->getFieldList(); $this->lang = false; $this->deleted = true; $this->list_simple_header = false; $this->colorOnBackground = true; $this->actions = array('view', 'edit', 'delete'); $this->bulk_actions = array( 'approve' => array('text' => $this->l('Approve selected'), 'confirm' => $this->l('Approve selected items?')), 'delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')) ); $this->context = Context::getContext(); $this->multishop_context = Shop::CONTEXT_ALL; parent::__construct(); } /** * Function used to render the list to display for this controller */ public function renderList() { $this->addRowAction('edit'); $this->addRowAction('details'); $this->bulk_actions = array( 'approve' => array('text' => $this->l('Approve selected'), 'confirm' => $this->l('Approve selected items?'), 'icon' => 'icon-check',), 'delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'), 'icon' => 'icon-trash',) ); return parent::renderList(); } ... } Thanks so much. Link to comment Share on other sites More sharing options...
NemoPS Posted June 22, 2016 Share Posted June 22, 2016 Core bug, what I did was grabbing a previous versions' processFilter method of the AdminController, and pasting it in place of the new one Link to comment Share on other sites More sharing options...
Alsernet2000 Posted June 22, 2016 Author Share Posted June 22, 2016 Should I have to say something, or the developers know that bug?? Link to comment Share on other sites More sharing options...
tarunn Posted November 2, 2016 Share Posted November 2, 2016 Doesn't look to be fixed in 1.6.1.6... ORDERS > FILTER BY DATE: A:2:{I:0;S:10:"2016-11-23";I:1;S:10:"2016-11-30";} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now