Skip to content

Commit

Permalink
previous commit: fix bug with wrong parent table foreign key
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLindhout committed May 28, 2021
1 parent c3dde49 commit fcd1ba2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion template_files/generated_filter.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ func IntFilterToMods(m *{{ $.Frontend.PackageName }}.IntFilter, column string) [
}
{{- end -}}
{{- else }}

if parentTable == {{ $.Backend.PackageName }}.TableNames.{{ $field.Relationship.BoilerModel.TableName }} {
queryMods = append(queryMods, qm.Where(fmt.Sprintf(parentTableStatement, {{ $.Backend.PackageName }}.TableNames.{{- $model.BoilerModel.TableName }}, {{ $.Backend.PackageName }}.{{ $model.BoilerModel.Name }}Columns.ID, parentTable, parentForeignKey)))
}
Expand Down

0 comments on commit fcd1ba2

Please sign in to comment.