Skip to content

Commit

Permalink
Merge pull request #23 from OXIDprojects/keywan-ghadami-oxid-patch-3
Browse files Browse the repository at this point in the history
fix export bool
  • Loading branch information
keywan-ghadami-oxid authored Jan 14, 2019
2 parents 4040be7 + d0a8b4e commit 2c52565
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Core/ConfigExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,6 @@ protected function withoutDefaults(&$aGroupedValues)
}
if (count($aModuleConfig) == 0) {
unset($aModuleConfigs[$sModuleId]);
} else {
if ($sDefaultType == 'bool') {
$mCurrentValue = (bool) $mCurrentValue;
$aModuleConfig[$sVarName] = $mCurrentValue;
}
}
}
}
Expand Down Expand Up @@ -670,9 +665,9 @@ private function varValueWithThemeDisplayInfo($sVarName, $mVarValue, $sVarType,
protected function convertToBool($mDefaultValue)
{
if ($mDefaultValue === 'false') {
$mDefaultValue = '';
$mDefaultValue = false;
} else {
$mDefaultValue = $mDefaultValue ? '1' : '';
$mDefaultValue = $mDefaultValue ? true : false;
}
return $mDefaultValue;
}
Expand Down

0 comments on commit 2c52565

Please sign in to comment.