mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Restore missing methods and fix silly bugs.
This commit is contained in:
		| @@ -45,7 +45,6 @@ class TransactionCurrencyFactory | ||||
|         $data['symbol']         = e($data['symbol']); | ||||
|         $data['name']           = e($data['name']); | ||||
|         $data['decimal_places'] = (int)$data['decimal_places']; | ||||
|         $data['enabled']        = (bool)$data['enabled']; | ||||
|         // if the code already exists (deleted)
 | ||||
|         // force delete it and then create the transaction:
 | ||||
|         $count = TransactionCurrency::withTrashed()->whereCode($data['code'])->count(); | ||||
| @@ -63,7 +62,7 @@ class TransactionCurrencyFactory | ||||
|                     'code'           => $data['code'], | ||||
|                     'symbol'         => $data['symbol'], | ||||
|                     'decimal_places' => $data['decimal_places'], | ||||
|                     'enabled'        => $data['enabled'], | ||||
|                     'enabled'        => false, | ||||
|                 ] | ||||
|             ); | ||||
|         } catch (QueryException $e) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user