1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #6239 from turbo124/v5-develop

Bug fixes
This commit is contained in:
David Bomba 2021-07-09 15:50:32 +10:00 committed by GitHub
commit dbd30d3674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -463,7 +463,7 @@ class Client extends BaseModel implements HasLocalePreference
{
$cg = CompanyGateway::find($pm['company_gateway_id']);
if($$cg && !property_exists($cg->fees_and_limits, GatewayType::BANK_TRANSFER)){
if($cg && !property_exists($cg->fees_and_limits, GatewayType::BANK_TRANSFER)){
$fees_and_limits = $cg->fees_and_limits;
$fees_and_limits->{GatewayType::BANK_TRANSFER} = new FeesAndLimits;
$cg->fees_and_limits = $fees_and_limits;