mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Fix issue validating budget amounts.
This commit is contained in:
		| @@ -47,8 +47,12 @@ trait ValidatesAutoBudgetRequest | ||||
|         if ('' === $type || 0 === $type) { | ||||
|             return; | ||||
|         } | ||||
|         // TODO should be present at more places, stop scientific notification
 | ||||
|         if (str_contains(strtoupper($amount), 'E')) { | ||||
|             $amount = ''; | ||||
|         } | ||||
|         // basic float check:
 | ||||
|         if (!is_numeric($amount)) { | ||||
|         if (!is_numeric($amount) || '' === $amount) { | ||||
|             $validator->errors()->add('auto_budget_amount', (string) trans('validation.amount_required_for_auto_budget')); | ||||
| 
 | ||||
|             return; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user