Bug In Admin Orders Display (+ Maybe Some Other Places)

jon_l <[email protected]>
Newsgroups gmane.comp.web.oscommerce.devel
Message-ID <417df5d26ef78753e1c17ad5774704ec@osCommerce-Forums>
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=155937#155937
----------------------------------------------------------------

I've checked this on MS1 and it still exists (it has been around for a long time) unless it has been fixed very recently. To re-create the problem (do not do this on a live site!!!!):

1. Go to orders in admin.
2. Go to the last page of orders, and delete all of the orders except for the last one.
3. Now delete the last order.
4. You should now see the problem.

What should happen is that you should be taken to the previous page and the relevant orders displayed, but it doesn't. It looks like some of the values are getting changed correctly but not all of them.

1. The page number in the url does not get updated (and stays on the old page that is no longer valid).
2. The displaying xx to yy count has a incorrect value for xx but correct for yy.
3. The page x of y has correct values.

I'm guessing that if the same logic is used elsewhere (e.g. customers, countries, zones etc), then the problem will occur elsewhere. I did start looking at the code to see where the problem was, but I got a bit lost.

Obviously this isn't a major problem, but it could do with being fixed.

Jon.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.