Jump to content

Pagination issue in chrome in backOffice


Recommended Posts

  • 3 weeks later...

Hello All,

 

Finally found solution...

Just modify two files...

Here are steps

 

1) Open AdminTab.php from classes folder,

 

Found this code ( line# 1400 approx. )

$page = (int)(Tools::getValue('submitFilter'.$this->table)); 

and replace this code with following code

if( ( $_POST['x']== 0 && $_POST['y'] == 0 )|| !isset($_POST['submitFilter'.$this->table]) )
{
	$_POST['submitFilter'.$this->table] = 1;
	$page = 1;
} else {
	$page = (int)(Tools::getValue('submitFilter'.$this->table));
}

2) Open AdminController.php from classes/controller folder,

 

Add following code just after starting of processFilter function

if( ( $_POST['x']== 0 && $_POST['y'] == 0 )|| empty($_POST) || !isset($_POST['submitFilter'.$this->table]))
		$_POST['submitFilter'.$this->table] = 1;

Just do these changes and Enjoy!!

Edited by divyeshp (see edit history)
Link to comment
Share on other sites

than you :)

 

i still get an error but no more page 2/1  :)

 

If i search a product/order or something else, the first time I submit there are nice results.

But if a submit a second time, there is no results, all products or all orders appear. if I submit again, it works.

 

it's like this error happens once every two times. Very very strange.

  • Like 1
Link to comment
Share on other sites

Thank you for taking the time to look at this bug divyeshp !

Indeed, as stated decome2013 it works 1 time out of two. 

 

Information for my PrestaShop version: 1.5.4.0

 

Thanks again,

 

Best regards,

  • Like 1
Link to comment
Share on other sites

well, i solve the issue. I found Chrome 29 on torrents and install it offline. no more problems  :D  :P  :D  :lol:

 

If you try, caution to spywares in these files, my norton became crazy for 15 min ^^ finally, i found a clean version. Only take offline setup (30 or 35mb). Before to launch setup, shut down internet and disable google update.

i can give you a link to chrome 29 if you don't find it :)

 

good luck ;)

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...