mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 18:54:58 +00:00 
			
		
		
		
	Add amount check. Not sure why rule doesn't fire.
This commit is contained in:
		| @@ -66,5 +66,10 @@ trait ValidatesAutoBudgetRequest | ||||
|         if (null !== $currencyId && null !== $currencyCode && '' === $currencyCode && 0 === $currencyId) { | ||||
|             $validator->errors()->add('auto_budget_amount', (string) trans('validation.require_currency_info')); | ||||
|         } | ||||
|         // too big amount | ||||
|         if((int)$amount > 16777216) { | ||||
|             $validator->errors()->add('auto_budget_amount', (string) trans('validation.amount_required_for_auto_budget')); | ||||
|             return; | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user