moved unnecessary reassignment
This commit is contained in:
parent
e51456bce2
commit
9490a220bc
|
@ -1456,12 +1456,13 @@ func cascadeRecordDelete(app App, mainRecord *Record, refs map[*Collection][]Fie
|
||||||
for _, refCollection := range sortedRefKeys {
|
for _, refCollection := range sortedRefKeys {
|
||||||
fields, ok := refs[refCollection]
|
fields, ok := refs[refCollection]
|
||||||
|
|
||||||
if refCollection.IsView() || !ok {
|
if !ok || refCollection.IsView() {
|
||||||
continue // skip missing or view collections
|
continue // skip missing or view collections
|
||||||
}
|
}
|
||||||
|
|
||||||
|
recordTableName := inflector.Columnify(refCollection.Name)
|
||||||
|
|
||||||
for _, field := range fields {
|
for _, field := range fields {
|
||||||
recordTableName := inflector.Columnify(refCollection.Name)
|
|
||||||
prefixedFieldName := recordTableName + "." + inflector.Columnify(field.GetName())
|
prefixedFieldName := recordTableName + "." + inflector.Columnify(field.GetName())
|
||||||
|
|
||||||
query := app.RecordQuery(refCollection)
|
query := app.RecordQuery(refCollection)
|
||||||
|
|
Loading…
Reference in New Issue