Bug 11108: fix duplicate display of basket whose receipt has just been cancelled
authorGalen Charlton <gmc@esilibrary.com>
Tue, 22 Oct 2013 00:14:47 +0000 (00:14 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 28 Oct 2013 15:06:20 +0000 (15:06 +0000)
commit0010c27ea17a515683f5ae01b9e97d4f80e3d55f
tree6efddf4c6f6b05c76a2847b8e867fe58d05efa3b
parent5d5677ec67e990982d71c9297d3d5edbcfffc977
Bug 11108: fix duplicate display of basket whose receipt has just been cancelled

After receiving an order basket, before finishing receiving the shipment,
one has an option to cancel the receipt.  This patch fixes a bug where
a basket whose receipt was just cancelled displays on both the pending orders
and already received tabs.

This patch also fixes a minor unitialized variable warning.

To test:

[1] Create a basket with at least one order and close it.
[2] Receive the order, then on the row in the 'Already received'
    table, click the cancel receipt link.
[3] In the page that displays, the basket just cancelled displays
    on both tables.  Clicking the cancel receipt link again results
    in an error message.
[4] Apply the patch.
[5] Repeat steps 1 and 2.  This time, the cancelled basket displays
    only in the pending orders table, as expected.
[6] Verify that after applying the patch, the following no longer
    is logged in the Apache error log:

parcel.pl: Use of uninitialized value in string eq at acqui/parcel.pl line...

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ed Veal <ed.veal@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes test plan, all tests and QA script.
Works as described.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
acqui/parcel.pl