From 965ceb6926b46d1c77dedb40e4463b19f400a087 Mon Sep 17 00:00:00 2001 From: Sergey Glazyrin Date: Sat, 20 Nov 2021 18:17:14 +0100 Subject: [PATCH] minor fixes fir list editable logic --- core/form_list_editable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/form_list_editable.go b/core/form_list_editable.go index efe4ebad..6f77843f 100644 --- a/core/form_list_editable.go +++ b/core/form_list_editable.go @@ -73,7 +73,7 @@ func (f *FormListEditable) ProceedRequest(form *multipart.Form, gormModel interf FieldError: make(map[string]ValidationError), GeneralErrors: make(ValidationError, 0), } - renderContext := &FormRenderContext{Context: adminContext} + renderContext := &FormRenderContext{Context: adminContext, Model: gormModel} for fieldName, field := range f.FieldRegistry.GetAllFields() { errors1 := field.ProceedForm(form, nil, renderContext) if len(errors1) == 0 {