Post by innuoluke » Mon Jul 29, 2013 8:15 pm

Hi,

There is a bug in OC 1.5.4.1, 1.5.5.1, and 1.5.6 (possibly other versions) in the affiliate transactions list in the admin system (Reports > Affiliates > Commission > [edit] > "Transactions" tab).

The bug is on line 1071 of "admin/controller/sale/affiliate.php" in all of the above mentioned versions.

Existing code:

Code: Select all

$results = $this->model_sale_affiliate->getTransactions($this->request->get['affiliate_id'], ($page - 1) * 10, 10);
Corrected code:

Code: Select all

$results = $this->model_sale_affiliate->getTransactions($this->request->get['affiliate_id'], ($page - 1) * $this->config->get('config_admin_limit'), $this->config->get('config_admin_limit'));
The bug is that the transactions list (Reports > Affiliates > Commission > [edit] > "Transactions" tab) only shows 10 items due to the code above. The pagination is set to use the "config_admin_limit" which is generally higher than 10. This results in a list of only 10 items being shown when there should be more (in our test case there should be 13), and no way to navigate to page 2 because the pagination thinks it is showing 25 items per page.

I hope this makes sense! Please feel free to ask for clarification :)

Web developer for Cotswold Web Services / Innuo Ltd
Need help with your Opencart website? Give us a call to see how we can help.


Newbie

Posts

Joined
Sat Jun 18, 2011 4:36 pm

Post by hostcomp » Tue Dec 31, 2013 10:55 am

Thanks!

Is this registered in the bug tracker? Might want to add it if not:

https://code.google.com/p/opencart/issues/list?can=1&q=

Image
Demo: http://sporktines.com/mrgd/admin/ Username: demo / Password: demo123
Admin Options: http://www.hostcompanion.com/make-refer ... index.html
=============================================================
Image
Demo: http://sporktines.com/pcdo/admin/ Username: demo / Password: demo123
Admin Options: http://www.hostcompanion.com/per-catego ... y-options/


User avatar
Newbie

Posts

Joined
Fri Jul 26, 2013 10:00 am
Who is online

Users browsing this forum: No registered users and 11 guests