From 0c1bf04e993f4bc891a1bcd0ef39a8b9af299b17 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 4 May 2019 20:11:10 -0400 Subject: [PATCH] Stop overriding is_active default when saving new relationship For some obscure reason the relationsip BAO was forcing the is_active field to default to 0 even though the schema sets a more sensible default of 1. --- CRM/Contact/BAO/Relationship.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index e271d16cb1..2fc3d2629d 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -473,7 +473,7 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship { */ public static function getdefaults() { return array( - 'is_active' => 0, + 'is_active' => 1, 'is_permission_a_b' => self::NONE, 'is_permission_b_a' => self::NONE, 'description' => '', -- 2.25.1