[REF] Replace Deprecated function CRM_Core_BAO_Setting::setItem with the relevant...
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 8 Dec 2019 19:46:24 +0000 (06:46 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 8 Dec 2019 20:22:00 +0000 (07:22 +1100)
CRM/Core/BAO/Navigation.php

index c5d83006972fb4f4f42c875a3d38330db16c00bf..755d70826706a154d75d9aa9476b118799dce933 100644 (file)
@@ -468,14 +468,7 @@ FROM civicrm_navigation WHERE domain_id = $domainID";
       $contact = new CRM_Contact_DAO_Contact();
       $contact->id = $contactID;
       if ($contact->find(TRUE)) {
-        CRM_Core_BAO_Setting::setItem(
-          $newKey,
-          CRM_Core_BAO_Setting::PERSONAL_PREFERENCES_NAME,
-          'navigation',
-          NULL,
-          $contactID,
-          $contactID
-        );
+        Civi::contactSettings($contactID)->set('navigation', $newKey);
       }
     }