From 52ed2379aaa9d662b706e3063a93eccb28824841 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 3 Dec 2015 20:06:48 +0000 Subject: [PATCH] Translate and allow for the negative in operator as per comment from Dave --- CRM/Report/Form/Contact/Relationship.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form/Contact/Relationship.php b/CRM/Report/Form/Contact/Relationship.php index 615f77320b..26d5d1e7d1 100644 --- a/CRM/Report/Form/Contact/Relationship.php +++ b/CRM/Report/Form/Contact/Relationship.php @@ -504,7 +504,8 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form { //for displaying relationship type filter if ($value['title'] == 'Relationship') { $relTypes = CRM_Core_PseudoConstant::relationshipType(); - $op = 'Is one of '; + $op = CRM_Utils_array::value('relationship_type_id_op', $this->_params) == 'in' ? + ts('Is one of') . ' ' : ts('Is not one of') . ' '; $relationshipTypes = array(); foreach ($this->_params['relationship_type_id_value'] as $relationship) { $relationshipTypes[] = $relTypes[$relationship]['label_' . $this->relationType]; -- 2.25.1