mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 03:57:32 -05:00 
			
		
		
		
	Ensure account gateway fields array is initialized
This commit is contained in:
		
							parent
							
								
									6a5b189912
								
							
						
					
					
						commit
						bc04d66371
					
				@ -132,6 +132,10 @@ class AccountGatewayController extends BaseController
 | 
				
			|||||||
        $currentGateways = $account->account_gateways;
 | 
					        $currentGateways = $account->account_gateways;
 | 
				
			||||||
        $gateways = Gateway::where('payment_library_id', '=', 1)->orderBy('name')->get();
 | 
					        $gateways = Gateway::where('payment_library_id', '=', 1)->orderBy('name')->get();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if ($accountGateway) {
 | 
				
			||||||
 | 
					            $accountGateway->fields = [];
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        foreach ($gateways as $gateway) {
 | 
					        foreach ($gateways as $gateway) {
 | 
				
			||||||
            $fields = $gateway->getFields();
 | 
					            $fields = $gateway->getFields();
 | 
				
			||||||
            if (! $gateway->isCustom()) {
 | 
					            if (! $gateway->isCustom()) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user