Merge pull request #12950 from snipe/fixes/warranty_lookup_validation

Fixed  #12946 - warranty lookup url was not nullable
This commit is contained in:
snipe 2023-04-29 13:48:54 -07:00 committed by GitHub
commit 4c27b65d45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ class Manufacturer extends SnipeModel
'url' => 'url|nullable',
'support_email' => 'email|nullable',
'support_url' => 'nullable|url',
'warranty_lookup_url' => 'starts_with:http://,https://,afp://,facetime://,file://,irc://','nullable'
'warranty_lookup_url' => 'nullable|starts_with:http://,https://,afp://,facetime://,file://,irc://'
];
protected $hidden = ['user_id'];