mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge pull request #12621 from Godmartinz/bug/sc-20259/divisionbyzeroerror-division-by-zero-in-snipe
Fixes depreciation model rule for months
This commit is contained in:
commit
3a1cf26e98
|
@ -16,7 +16,7 @@ class Depreciation extends SnipeModel
|
||||||
// Declare the rules for the form validation
|
// Declare the rules for the form validation
|
||||||
protected $rules = [
|
protected $rules = [
|
||||||
'name' => 'required|min:3|max:255|unique:depreciations,name',
|
'name' => 'required|min:3|max:255|unique:depreciations,name',
|
||||||
'months' => 'required|max:3600|integer',
|
'months' => 'required|max:3600|integer|gt:0',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue