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

Commit

Permalink
minor fixes fir list editable logic
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyglazyrindev committed Nov 20, 2021
1 parent a7513fb commit 965ceb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/form_list_editable.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 965ceb6

Please sign in to comment.