From: Mattias Michaux Date: Mon, 2 Nov 2015 14:59:20 +0000 (+0100) Subject: Added possibility to skip the recent view list when creating a relationship. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=aeacb9a9e404bf7a997b416dc6f2474738d22cd5;p=civicrm-core.git Added possibility to skip the recent view list when creating a relationship. --- 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; }