Fix sandbox checkbox

This commit is contained in:
Hillel Coren 2017-07-17 10:52:32 +03:00
parent 0c90a52565
commit 19d2e6aa61

View File

@ -254,7 +254,7 @@ class AccountGatewayController extends BaseController
if ($oldConfig && $value && $value === str_repeat('*', strlen($value))) {
$value = $oldConfig->$field;
}
if (! $value && ($field == 'testMode' || $field == 'developerMode')) {
if (! $value && in_array($field, ['testMode', 'developerMode', 'sandbox'])) {
// do nothing
} elseif ($gatewayId == GATEWAY_CUSTOM) {
$config->$field = strip_tags($value);