From 81ec12f66dbe6c2dd96b3164c3470889ab8394c0 Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 19 Oct 2015 12:08:13 +0530 Subject: [PATCH] CRM-17414: minor fixes ---------------------------------------- * CRM-17414: Add to and from dates to the Relationship Report filter https://issues.civicrm.org/jira/browse/CRM-17414 --- CRM/Report/Form/Contact/Relationship.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CRM/Report/Form/Contact/Relationship.php b/CRM/Report/Form/Contact/Relationship.php index cbbcf7f1a1..9a7229012d 100644 --- a/CRM/Report/Form/Contact/Relationship.php +++ b/CRM/Report/Form/Contact/Relationship.php @@ -220,7 +220,7 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form { 'type' => CRM_Utils_Type::T_INT, ), /* - * This is a pseudo field to allow search for relationships + * This is a pseudo field to allow search for relationships * that are expired or not yet started as well. */ 'is_valid' => array( @@ -657,11 +657,11 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form { } /** - * @param $valid bool - set to 1 if we are looking for a valid relationship, 0 if not + * @param $valid bool - set to 1 if we are looking for a valid relationship, 0 if not * * @return array */ - function buildValidityQuery($valid) { + public function buildValidityQuery($valid) { $clause = NULL; if ($valid == '1') { // We are asking that the dates are in the valid range @@ -673,4 +673,5 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form { } return $clause; } + } -- 2.25.1