From f7af860fc1ca4e0cf830ffd482a18dc1c0e12bb2 Mon Sep 17 00:00:00 2001 From: kurund Date: Mon, 3 Mar 2014 01:36:19 +0530 Subject: [PATCH] relationship edit fixes: form breaks if note is not entered during add --- CRM/Contact/Form/Relationship.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Relationship.php b/CRM/Contact/Form/Relationship.php index c27687a228..45b27742af 100644 --- a/CRM/Contact/Form/Relationship.php +++ b/CRM/Contact/Form/Relationship.php @@ -261,8 +261,9 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form { 'entity_id' => $this->_relationshipId, 'entity_table' => 'civicrm_relationship', 'limit' => 1, + 'version' => 3 ); - $note = civicrm_api3('note' ,'getsingle', $noteParams); + $note = civicrm_api('Note' ,'getsingle', $noteParams); $defaults['note'] = CRM_Utils_Array::value('note', $note); } } -- 2.25.1