Remove undefined variable when creating note
authorMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Tue, 15 Jan 2019 11:02:08 +0000 (11:02 +0000)
committerMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Tue, 15 Jan 2019 11:02:08 +0000 (11:02 +0000)
CRM/Contact/BAO/Contact.php

index 4071174b3b463e1ea16914973f0d03db517d10a9..4dbe7fd8b5c9280d78c9d1b7c4a2fbdcb34fa6f6 100644 (file)
@@ -379,9 +379,6 @@ class CRM_Contact_BAO_Contact extends CRM_Contact_DAO_Contact {
       }
       else {
         $contactId = $contact->id;
-        if (isset($note['contact_id'])) {
-          $contactId = $note['contact_id'];
-        }
         //if logged in user, overwrite contactId
         if ($userID) {
           $contactId = $userID;