Matthieu B Posted March 27, 2011 Share Posted March 27, 2011 Après une migration de la 1.1 à la 1.4 je me retrouve avec une pagination inexistante dans la liste des commandes et clients. La fonction filtre fonctionne très bien en revanche.Voici le rendu : Link to comment Share on other sites More sharing options...
inksoad Posted April 1, 2011 Share Posted April 1, 2011 Pour résoudre ce pb il faut remplacer dans classes/AdminTab.php $this->_listTotal : $this->_listTotal = count(Db::getInstance()->ExecuteS('SELECT '.($this->_tmpTableFilter ? ' * FROM (SELECT ' : '').' '.($this->lang ? 'b.*, ' : '').'a.*'.(isset($this->_select) ? ', '.$this->_select.' ' : '').' FROM `'._DB_PREFIX_.$sqlTable.'` a '.($this->lang ? 'LEFT JOIN `'._DB_PREFIX_.$this->table.'_lang` b ON (b.`'.$this->identifier.'` = a.`'.$this->identifier.'` AND b.`id_lang` = '.(int)($id_lang).')' : '').' '.(isset($this->_join) ? $this->_join.' ' : '').' WHERE 1 '.(isset($this->_where) ? $this->_where.' ' : '').($this->deleted ? 'AND a.`deleted` = 0 ' : '').(isset($this->_filter) ? $this->_filter : '').' '.(isset($this->_group) ? $this->_group.' ' : '').' '.((isset($this->_filterHaving) || isset($this->_having)) ? 'HAVING ' : '').(isset($this->_filterHaving) ? ltrim($this->_filterHaving, ' AND ') : '').(isset($this->_having) ? $this->_having.' ' : '').' ORDER BY '.(($orderBy == $this->identifier) ? 'a.' : '').'`'.pSQL($orderBy).'` '.pSQL($orderWay). ($this->_tmpTableFilter ? ') tmpTable WHERE 1'.$this->_tmpTableFilter : ''))); Voilà Link to comment Share on other sites More sharing options...
Matthieu B Posted April 11, 2011 Author Share Posted April 11, 2011 Un grand merci, cela fonctionne ! En revanche la requête semble plus lourde non ? 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