OSCommerce Product Manager

OSCommerce Product Manager for Windows
Tasklist

FS#356 - Wrong product list loaded when category tree is clicked...

Attached to Project: OSCommerce Product Manager
Opened by Mario A. Valdez-Ramirez (mvaldez) - Tuesday, 16 February 2010, 14:59 GMT-6
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Thursday, 18 February 2010, 15:36 GMT-6
Task Type Bug Report
Category Backend / Core
Status Closed
Assigned To Mario A. Valdez-Ramirez (mvaldez)
Operating System All
Severity Low
Priority Immediate
Reported Version any
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

In a customized osCommerce store, the OSCPMWin client loads the wrong product list when clicking a given category in the category tree. It seems it load the previous on listed in the tree (for example, Prueba category is listed before Relojes, but clicking Prueba loads the Relojes products).

Pending to check if this is a problem with this store only or a general one.

This task depends upon

Closed by  Mario A. Valdez-Ramirez (mvaldez)
Thursday, 18 February 2010, 15:36 GMT-6
Reason for closing:  Fixed / Implemented
Comment by Mario A. Valdez-Ramirez (mvaldez) - Tuesday, 16 February 2010, 16:41 GMT-6
It seems we introduced this bug in version 0.4.1.870, which is not a general release. According to the CVS log:

Replaced procedure PRopm_LoadCategoryBoxList by PRopm_LoadCategoryBoxList2 in main.pas, which is an improved version with faster code and with better handling of corrupted tree structures (crossed and circular references). This code is based on the code in the PRopm_AddCatTreeNode procedure.

Well, it seems we messed up the TreeIndex and ListIndex fields in the global category array when loading them in PRopm_LoadCategoryBoxList2.

Pending to fix. Chaning priority.

Comment by Mario A. Valdez-Ramirez (mvaldez) - Thursday, 18 February 2010, 15:36 GMT-6
Fixed.

Loading...