mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:44:28 -04:00
Fix sandbox checkbox
This commit is contained in:
parent
0c90a52565
commit
19d2e6aa61
@ -254,7 +254,7 @@ class AccountGatewayController extends BaseController
|
|||||||
if ($oldConfig && $value && $value === str_repeat('*', strlen($value))) {
|
if ($oldConfig && $value && $value === str_repeat('*', strlen($value))) {
|
||||||
$value = $oldConfig->$field;
|
$value = $oldConfig->$field;
|
||||||
}
|
}
|
||||||
if (! $value && ($field == 'testMode' || $field == 'developerMode')) {
|
if (! $value && in_array($field, ['testMode', 'developerMode', 'sandbox'])) {
|
||||||
// do nothing
|
// do nothing
|
||||||
} elseif ($gatewayId == GATEWAY_CUSTOM) {
|
} elseif ($gatewayId == GATEWAY_CUSTOM) {
|
||||||
$config->$field = strip_tags($value);
|
$config->$field = strip_tags($value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user