From fcd1ba26859fafe2a0ac69a45ec425eb77a2b6c6 Mon Sep 17 00:00:00 2001 From: Richard Lindhout Date: Fri, 28 May 2021 19:24:19 +0200 Subject: [PATCH] previous commit: fix bug with wrong parent table foreign key --- template_files/generated_filter.gotpl | 1 - 1 file changed, 1 deletion(-) diff --git a/template_files/generated_filter.gotpl b/template_files/generated_filter.gotpl index 12c6653..11effb4 100644 --- a/template_files/generated_filter.gotpl +++ b/template_files/generated_filter.gotpl @@ -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))) }