validation msg

This commit is contained in:
spencerrlongg 2024-02-14 11:52:25 -06:00
parent 72c118a70f
commit d9c61fdb02
2 changed files with 2 additions and 2 deletions

View file

@ -169,8 +169,7 @@ class AssetModelsController extends Controller
$model->fieldset_id = $request->input('fieldset_id');
if ($this->shouldAddDefaultValues($request->input())) {
if (!$this->assignCustomFieldsDefaultValues($model, $request->input('default_values'))){
//TODO: this needs to return the actual validation errors, will come back to this before opening PR
if ($msg = !$this->assignCustomFieldsDefaultValues($model, $request->input('default_values'))){
return redirect()->back()->withInput()->with('error', trans('admin/custom_fields/message.fieldset_default_value.error'));
}
}

View file

@ -105,6 +105,7 @@ return [
'gte' => [
'numeric' => 'Value cannot be negative'
],
'checkboxes' => ':attribute contains invalid options.',
/*