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:
8972e26
)
Fix OptionGroup::values cache CRM-12464
author
Coleman Watts
<coleman@civicrm.org>
Fri, 31 May 2013 16:58:32 +0000
(09:58 -0700)
committer
Coleman Watts
<coleman@civicrm.org>
Fri, 31 May 2013 16:58:32 +0000
(09:58 -0700)
----------------------------------------
* CRM-12464: Add PseudoConstants to Schema Metadata
http://issues.civicrm.org/jira/browse/CRM-12464
CRM/Core/OptionGroup.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/OptionGroup.php
b/CRM/Core/OptionGroup.php
index 64131a314b3c9927f34acb7e3002d60bc778193b..4008a3ee830091e4ba532654c7c480bbaede5808 100644
(file)
--- a/
CRM/Core/OptionGroup.php
+++ b/
CRM/Core/OptionGroup.php
@@
-103,6
+103,7
@@
class CRM_Core_OptionGroup {
$localize = FALSE, $condition = NULL,
$labelColumnName = 'label', $onlyActive = TRUE, $fresh = FALSE, $keyColumnName = 'value'
) {
+ $cache = CRM_Utils_Cache::singleton();
$cacheKey = self::createCacheKey($name, $flip, $grouping, $localize, $condition, $labelColumnName, $onlyActive, $keyColumnName);
if (!$fresh) {
@@
-111,7
+112,6
@@
class CRM_Core_OptionGroup {
return self::$_cache[$cacheKey];
}
// Fetch from main cache
- $cache = CRM_Utils_Cache::singleton();
$var = $cache->get($cacheKey);
if ($var) {
return $var;