mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for group settings
This commit is contained in:
commit
da52841698
@ -424,7 +424,7 @@ class BillingPortalPurchasev2 extends Component
|
||||
$client_repo = new ClientRepository(new ClientContactRepository());
|
||||
$data = [
|
||||
'name' => '',
|
||||
'group_settings_id' => $this->encodePrimaryKey($this->subscription->group_id),
|
||||
'group_settings_id' => $this->subscription->group_id,
|
||||
'contacts' => [
|
||||
['email' => $this->email],
|
||||
],
|
||||
|
@ -64,6 +64,9 @@ class PaymentMethod
|
||||
if ($company_gateways || $company_gateways == '0') {
|
||||
$transformed_ids = $this->transformKeys(explode(',', $company_gateways));
|
||||
|
||||
if($company_gateways == '0')
|
||||
$transformed_ids = [];
|
||||
|
||||
$this->gateways = $this->client
|
||||
->company
|
||||
->company_gateways
|
||||
@ -93,6 +96,11 @@ class PaymentMethod
|
||||
if ($company_gateways || $company_gateways == '0') {
|
||||
$transformed_ids = $this->transformKeys(explode(',', $company_gateways));
|
||||
|
||||
if($company_gateways == '0') {
|
||||
$transformed_ids = [];
|
||||
}
|
||||
|
||||
|
||||
$this->gateways = $this->client
|
||||
->company
|
||||
->company_gateways
|
||||
|
@ -29,7 +29,7 @@
|
||||
@yield('quote-not-approved-right-side')
|
||||
|
||||
<div class="inline-flex rounded-md shadow-sm">
|
||||
<input type="hidden" name="action" value="payment">
|
||||
<input type="hidden" name="action" value="approve">
|
||||
<button onclick="setTimeout(() => this.disabled = true, 0); return true;" type="button"
|
||||
class="button button-primary bg-primary"
|
||||
id="approve-button">{{ ctrans('texts.approve') }}</button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user