From e9578ba8a134c9ca5e618d1ecf8f47b04529fabc Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 13 Nov 2020 12:09:48 -0800 Subject: [PATCH] Fixed #8737 - incorrect validation string for components update --- app/Http/Controllers/Components/ComponentsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Components/ComponentsController.php b/app/Http/Controllers/Components/ComponentsController.php index 9fde48df41..16dc081342 100644 --- a/app/Http/Controllers/Components/ComponentsController.php +++ b/app/Http/Controllers/Components/ComponentsController.php @@ -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()) {