Closed (fixed)
Project:
MERCI (Manage Equipment Reservations, Checkout and Inventory)
Version:
6.x-2.0-rc2
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2012 at 20:08 UTC
Updated:
11 May 2012 at 01:50 UTC
Comments
Comment #1
darrick commentedI committed a fix here: http://drupalcode.org/project/merci.git/patch/2b8343c
I found this occurs when you have an item currently checked out and then create a reservation in the future for that same item. On creating the future reservation the correct status was being wiped out.
I've also added a database update to rebuild the statues correctly.
Comment #2
iPeat commentedSeems to have fixed the scenario I first listed. But the opposite is now occurring items that should be available are still listed as checked out. Again only from the Reservation Status field perspective the reservation system still views it as available.
Comment #3
iPeat commentedBand aid: rerunning the database update in #1 will correct any out of sync statuses.
Comment #4
iPeat commentedGot it patch needs to be modified to read
if ($item_status == MERCI_ITEM_STATUS_CHECKED_OUT or ($node->merci_original_reservation_status == 3 and $item_status == MERCI_ITEM_STATUS_AVAILABLE)){instead of
if ($item_status == MERCI_ITEM_STATUS_CHECKED_OUT or ($node->merci_original_reservation_status == MERCI_ITEM_STATUS_CHECKED_OUT and $item_status == MERCI_ITEM_STATUS_AVAILABLE)){Comment #5
darrick commentedThank you iPeat. Good catch. I've just committed your fix here: http://drupalcode.org/project/merci.git/patch/6a7db51
Comment #6
darrick commented