Replace 'required' rule with 'nullable' to allow blank default customfields values

This commit is contained in:
Ivan Nieto Vivanco 2022-08-25 18:16:50 -05:00
parent 482a7b2a3a
commit 1ff2d15c4a

View file

@ -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;
}