Skip to content
This repository was archived by the owner on Jan 10, 2022. It is now read-only.

Commit 965ceb6

Browse files
minor fixes fir list editable logic
1 parent a7513fb commit 965ceb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/form_list_editable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (f *FormListEditable) ProceedRequest(form *multipart.Form, gormModel interf
7373
FieldError: make(map[string]ValidationError),
7474
GeneralErrors: make(ValidationError, 0),
7575
}
76-
renderContext := &FormRenderContext{Context: adminContext}
76+
renderContext := &FormRenderContext{Context: adminContext, Model: gormModel}
7777
for fieldName, field := range f.FieldRegistry.GetAllFields() {
7878
errors1 := field.ProceedForm(form, nil, renderContext)
7979
if len(errors1) == 0 {

0 commit comments

Comments
 (0)