mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Enable currencies if not enabled yet. #1952
This commit is contained in:
		| @@ -217,6 +217,11 @@ trait TransactionServiceTrait | ||||
|  | ||||
|             return; | ||||
|         } | ||||
|         // enable currency if not enabled: | ||||
|         if(false === $currency->enabled) { | ||||
|             $currency->enabled = true; | ||||
|             $currency->save(); | ||||
|         } | ||||
|  | ||||
|         $transaction->foreign_currency_id = $currency->id; | ||||
|         $transaction->save(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user