projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1403085
)
Don't reset the config value if it's not set AND not the default.
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Wed, 22 Sep 2010 21:00:57 +0000
(17:00 -0400)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Wed, 22 Sep 2010 21:00:57 +0000
(17:00 -0400)
Otherwise, we overwrite fields that are explicitly emptied with the previous values.
framework/Core/lib/Horde/Config.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde/Config.php
b/framework/Core/lib/Horde/Config.php
index
c5269f8
..
b3e528c
100644
(file)
--- a/
framework/Core/lib/Horde/Config.php
+++ b/
framework/Core/lib/Horde/Config.php
@@
-314,7
+314,10
@@
class Horde_Config
}
} elseif (isset($configitem['_type'])) {
$val = $formvars->getExists($configname, $wasset);
- if (!$wasset) {
+ if (!$wasset &&
+ ((array_key_exists('is_default', $configitem) && $configitem['is_default'])
+ || !array_key_exists('is_default', $configitem))) {
+
$val = isset($configitem['default']) ? $configitem['default'] : null;
}