From 0100befe3b876b04a8ddd3538e926810d60d850a Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 9 Feb 2016 23:13:11 +0000 Subject: [PATCH] Fix http 500 error on Relationship report caused by duplicate code added in security update --- CRM/Report/Form/Contact/Relationship.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/CRM/Report/Form/Contact/Relationship.php b/CRM/Report/Form/Contact/Relationship.php index ec81bcabd623..8eaa4b0eb3e4 100644 --- a/CRM/Report/Form/Contact/Relationship.php +++ b/CRM/Report/Form/Contact/Relationship.php @@ -679,22 +679,4 @@ public function buildValidityQuery($valid) { return $clause; } - /** - * @param $valid bool - set to 1 if we are looking for a valid relationship, 0 if not - * - * @return array - */ - public function buildValidityQuery($valid) { - $clause = NULL; - if ($valid == '1') { - // relationships dates are not expired - $clause = "((start_date <= CURDATE() OR start_date is null) AND (end_date >= CURDATE() OR end_date is null))"; - } - elseif ($valid == '0') { - // relationships dates are expired or has not started yet - $clause = "(start_date >= CURDATE() OR end_date < CURDATE())"; - } - return $clause; - } - }