mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Fixed #8737 - incorrect validation string for components update
This commit is contained in:
parent
0c0de5e351
commit
e9578ba8a1
|
@ -124,7 +124,7 @@ class ComponentsController extends Controller
|
||||||
}
|
}
|
||||||
$min = $component->numCHeckedOut();
|
$min = $component->numCHeckedOut();
|
||||||
$validator = Validator::make($request->all(), [
|
$validator = Validator::make($request->all(), [
|
||||||
"qty" => "required|numeric|gt:$min"
|
"qty" => "required|numeric|min:$min"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($validator->fails()) {
|
if ($validator->fails()) {
|
||||||
|
|
Loading…
Reference in a new issue