mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Set visible to boolean cast
This commit is contained in:
parent
f1c5f37189
commit
5072d63436
@ -79,10 +79,6 @@ class CompanyGateway extends BaseModel
|
||||
|
||||
public function getTypeAlias($gateway_type_id)
|
||||
{
|
||||
if ($gateway_type_id == 'token') {
|
||||
$gateway_type_id = 1;
|
||||
}
|
||||
|
||||
return GatewayType::find($gateway_type_id)->alias;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ class Gateway extends StaticModel
|
||||
'is_offsite' => 'boolean',
|
||||
'is_secure' => 'boolean',
|
||||
'recommended' => 'boolean',
|
||||
//'visible' => 'boolean',
|
||||
'visible' => 'boolean',
|
||||
'sort_order' => 'int',
|
||||
'updated_at' => 'timestamp',
|
||||
'created_at' => 'timestamp',
|
||||
|
@ -26,6 +26,7 @@ class GatewayType extends StaticModel
|
||||
const ALIPAY = 6;
|
||||
const SOFORT = 7;
|
||||
const APPLE_PAY = 8;
|
||||
const SEPA = 9;
|
||||
|
||||
public function gateway()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user