Opened 16 years ago

Closed 16 years ago

#46 closed defect (fixed)

cart not retaining old files

Reported by: lkedzior@… Owned by: DavidSmith
Priority: minor Component: web archive
Version: Keywords:
Cc:

Description

Whenever I select files, put them in the cart, and go to the 'new query', I find that after typing new parameters and submitting the request, the same number of new files are already selected. Also there are already files (the same number of them) in the cart, but these are the files selected in the new query. I would expect the files from the previous query to be there.

Change History (4)

comment:1 Changed 16 years ago by MatthewWhiting

Owner: changed from Matthew to MatthewWhiting
Status: newassigned

This problem has been obviated for the time being by clearing the cart list when the "New query" link is selected.

Whether this is desirable for the future needs to be looked at, but storing the cart as separate items will require some rewriting of the code (currently the list of cart items is stored as row numbers from the results list -- hence the problem).

comment:2 Changed 16 years ago by MatthewWhiting

Priority: criticalminor

Also, reducing the priority...

comment:3 Changed 16 years ago by DavidSmith

Owner: changed from MatthewWhiting to DavidSmith
Status: assignednew

comment:4 Changed 16 years ago by DavidSmith

Resolution: fixed
Status: newclosed

I've updated the code in index.php, query.php and utils.php to use $cart_items as an array of result records, rather than indices into the last result set. This enables us to store results in the cart, then perform a new query and store more results in the cart.

Note: See TracTickets for help on using tickets.