From aeacb9a9e404bf7a997b416dc6f2474738d22cd5 Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Mon, 2 Nov 2015 15:59:20 +0100 Subject: [PATCH] Added possibility to skip the recent view list when creating a relationship. --- CRM/Contact/BAO/Relationship.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index c762b65dc8..9c187c6c18 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -83,7 +83,10 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship { self::disableEnableRelationship($id, $action, $params, $ids, $active); } - self::addRecent($params, $relationship); + if (empty($params['skipRecentView'])) { + self::addRecent($params, $relationship); + } + return $relationship; } -- 2.25.1