From 5443dbf64833b4cfddcc07d43657dcff371550c4 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 13 May 2013 04:51:27 -0400 Subject: [PATCH] Show all orders for a Contact. Show order history for Contacts who are beneficiaries or requesters, instead of only the former. --- lib/contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/contact.php b/lib/contact.php index 874c918..d5975b9 100644 --- a/lib/contact.php +++ b/lib/contact.php @@ -178,7 +178,7 @@ global $contact_roles, $parcel_sizes, $parcel_contents; if (! $contact) $contact = new Contact; - else if ($contact->getRole() & $GLOBALS['ROLE_BENEFICIARY']) { + else if ($contact->getRole() & ($GLOBALS['ROLE_BENEFICIARY'] | $GLOBALS['ROLE_REQUESTER'])) { $state_mask = $GLOBALS['STATE_ANY']; $state_mask &= ~$GLOBALS['STATE_DELIVERED']; $state_mask &= ~$GLOBALS['STATE_CANCELLED']; -- 2.7.4