mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-23 11:43:47 -08:00
Replace 'required' rule with 'nullable' to allow blank default customfields values
This commit is contained in:
parent
482a7b2a3a
commit
1ff2d15c4a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue