mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 12:15:43 +00:00
Replace 'required' rule with 'nullable' to allow blank default customfields values
This commit is contained in:
@ -471,7 +471,7 @@ class AssetModelsController extends Controller
|
||||
// (we are at model level, the rule still applies when creating a new asset using this model)
|
||||
$index = array_search('required', $validation);
|
||||
if ($index !== false){
|
||||
unset($validation[$index]);
|
||||
$validation[$index] = 'nullable';
|
||||
}
|
||||
$rules[$fieldset] = $validation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user