mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-01 20:17:35 -04: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; | ||||
|         $gateways = Gateway::where('payment_library_id', '=', 1)->orderBy('name')->get(); | ||||
| 
 | ||||
|         if ($accountGateway) { | ||||
|             $accountGateway->fields = []; | ||||
|         } | ||||
| 
 | ||||
|         foreach ($gateways as $gateway) { | ||||
|             $fields = $gateway->getFields(); | ||||
|             if (! $gateway->isCustom()) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user