Fixing #6980 - fixing choice of relational foreign key field name when working with fields named differently to the primary key.
This commit is contained in:
parent
673c375934
commit
c8468c39ea
|
@ -534,7 +534,7 @@ module External {
|
|||
})
|
||||
// this is the response from knex if no rows found
|
||||
const rows = !response[0].read ? response : []
|
||||
const storeTo = isMany ? field.throughFrom || linkPrimaryKey : manyKey
|
||||
const storeTo = isMany ? field.throughFrom || linkPrimaryKey : fieldName
|
||||
related[storeTo] = { rows, isMany, tableId }
|
||||
}
|
||||
return related
|
||||
|
|
Loading…
Reference in New Issue