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:
adb52ae
)
CRM-12804 fix : add any missing settings at the end of final upgrade
author
Pratik Joshi
<pratik.joshi@webaccess.co.in>
Fri, 21 Jun 2013 14:26:27 +0000
(19:56 +0530)
committer
Pratik Joshi
<pratik.joshi@webaccess.co.in>
Fri, 21 Jun 2013 14:26:27 +0000
(19:56 +0530)
CRM/Upgrade/Form.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Upgrade/Form.php
b/CRM/Upgrade/Form.php
index 7ec91adfbe580c1678cfa8b308957841cab1f71d..38d4504cc24af3ec32f2c4ac37829ddae471d0cd 100644
(file)
--- a/
CRM/Upgrade/Form.php
+++ b/
CRM/Upgrade/Form.php
@@
-604,10
+604,6
@@
SET version = '$version'
$config = CRM_Core_Config::singleton();
$config->userSystem->flush();
-
- if (version_compare($currentVer, '4.1.alpha1') >= 0) {
- CRM_Core_BAO_Setting::updateSettingsFromMetaData();
- }
return TRUE;
}
@@
-623,6
+619,10
@@
SET version = '$version'
$params = array();
CRM_Core_BAO_ConfigSetting::add($params);
+ // CRM-12804 comment-51411 : add any missing settings
+ // at the end of upgrade
+ CRM_Core_BAO_Setting::updateSettingsFromMetaData();
+
// cleanup caches CRM-8739
$config = CRM_Core_Config::singleton();
$config->cleanupCaches(1);