From: Seamus Lee Date: Thu, 3 Dec 2015 20:06:48 +0000 (+0000) Subject: Translate and allow for the negative in operator as per comment from Dave X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=52ed2379aaa9d662b706e3063a93eccb28824841;p=civicrm-core.git Translate and allow for the negative in operator as per comment from Dave --- 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];