Skip to content

A free open source IT asset/license management system

un'required'ing the rule. not sure what's breaking here but looking

akemidx0c84904bf9db
diff --git a/app/Http/Requests/AssetCheckinRequest.php b/app/Http/Requests/AssetCheckinRequest.php
index 7321aed193..3d958aae18 100644
--- a/app/Http/Requests/AssetCheckinRequest.php
+++ b/app/Http/Requests/AssetCheckinRequest.php
@@ -27,7 +27,7 @@ class AssetCheckinRequest extends Request
if($settings->require_checkinout_notes) {
// dd($settings->require_checkinout_notes);
- $rules['notes'] = 'required|string|nullable';
+ $rules['notes'] = 'string|nullable';
}
return $rules;
}
diff --git a/app/Http/Requests/AssetCheckoutRequest.php b/app/Http/Requests/AssetCheckoutRequest.php
index 27372055f8..91ed094ae3 100644
--- a/app/Http/Requests/AssetCheckoutRequest.php
+++ b/app/Http/Requests/AssetCheckoutRequest.php
@@ -37,12 +37,12 @@ class AssetCheckoutRequest extends Request
'nullable',
'date'
],
+ ];
if($settings->require_checkinout_notes) {
// dd($settings->require_checkinout_notes);
- $rules['notes'] = 'required|string|nullable';
+ $rules['notes'] = 'string|nullable';
}
- ];
return $rules;
}