projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18c28e0
)
[REF] Replace Deprecated function CRM_Core_BAO_Setting::setItem with the relevant...
author
Seamus Lee
<seamuslee001@gmail.com>
Sun, 8 Dec 2019 19:46:24 +0000
(06:46 +1100)
committer
Seamus Lee
<seamuslee001@gmail.com>
Sun, 8 Dec 2019 20:22:00 +0000
(07:22 +1100)
CRM/Core/BAO/Navigation.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/BAO/Navigation.php
b/CRM/Core/BAO/Navigation.php
index c5d83006972fb4f4f42c875a3d38330db16c00bf..755d70826706a154d75d9aa9476b118799dce933 100644
(file)
--- a/
CRM/Core/BAO/Navigation.php
+++ b/
CRM/Core/BAO/Navigation.php
@@
-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);
}
}