relationship edit fixes: form breaks if note is not entered during add
authorkurund <kurund@civicrm.org>
Sun, 2 Mar 2014 20:06:19 +0000 (01:36 +0530)
committerkurund <kurund@civicrm.org>
Sun, 2 Mar 2014 20:06:19 +0000 (01:36 +0530)
CRM/Contact/Form/Relationship.php

index c27687a2287f38271bbe416e68c6e2fe4ab11a89..45b27742af02543f3fc99121c01035e75305ab95 100644 (file)
@@ -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);
       }
     }