mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 12:04:35 -04:00
updates for disabling gatways in groups
This commit is contained in:
parent
a122c6f3cc
commit
c005f8b4ac
@ -424,7 +424,7 @@ class BillingPortalPurchasev2 extends Component
|
|||||||
$client_repo = new ClientRepository(new ClientContactRepository());
|
$client_repo = new ClientRepository(new ClientContactRepository());
|
||||||
$data = [
|
$data = [
|
||||||
'name' => '',
|
'name' => '',
|
||||||
'group_id' => $this->encodePrimaryKey($this->subscription->group_id),
|
'group_settings_id' => $this->subscription->group_id,
|
||||||
'contacts' => [
|
'contacts' => [
|
||||||
['email' => $this->email],
|
['email' => $this->email],
|
||||||
],
|
],
|
||||||
|
@ -64,6 +64,9 @@ class PaymentMethod
|
|||||||
if ($company_gateways || $company_gateways == '0') {
|
if ($company_gateways || $company_gateways == '0') {
|
||||||
$transformed_ids = $this->transformKeys(explode(',', $company_gateways));
|
$transformed_ids = $this->transformKeys(explode(',', $company_gateways));
|
||||||
|
|
||||||
|
if($company_gateways == '0')
|
||||||
|
$transformed_ids = [];
|
||||||
|
|
||||||
$this->gateways = $this->client
|
$this->gateways = $this->client
|
||||||
->company
|
->company
|
||||||
->company_gateways
|
->company_gateways
|
||||||
@ -93,6 +96,11 @@ class PaymentMethod
|
|||||||
if ($company_gateways || $company_gateways == '0') {
|
if ($company_gateways || $company_gateways == '0') {
|
||||||
$transformed_ids = $this->transformKeys(explode(',', $company_gateways));
|
$transformed_ids = $this->transformKeys(explode(',', $company_gateways));
|
||||||
|
|
||||||
|
if($company_gateways == '0') {
|
||||||
|
$transformed_ids = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->gateways = $this->client
|
$this->gateways = $this->client
|
||||||
->company
|
->company
|
||||||
->company_gateways
|
->company_gateways
|
||||||
|
Loading…
x
Reference in New Issue
Block a user