Fixed #8737 - incorrect validation string for components update

This commit is contained in:
snipe 2020-11-13 12:09:48 -08:00
parent 0c0de5e351
commit e9578ba8a1

View file

@ -124,7 +124,7 @@ class ComponentsController extends Controller
}
$min = $component->numCHeckedOut();
$validator = Validator::make($request->all(), [
"qty" => "required|numeric|gt:$min"
"qty" => "required|numeric|min:$min"
]);
if ($validator->fails()) {