Decode id if needed
This commit is contained in:
parent
79ea97afb5
commit
73f54c8133
1 changed files with 5 additions and 1 deletions
|
@ -282,8 +282,12 @@ module External {
|
|||
const linkTablePrimary = linkTable.primary[0]
|
||||
// one to many
|
||||
if (isOneSide(field)) {
|
||||
let id = row[key][0]
|
||||
if (isNaN(id)) {
|
||||
id = decodeURIComponent(row[key]).match(/\[(.*?)\]/)?.[1]
|
||||
}
|
||||
newRow[field.foreignKey || linkTablePrimary] = breakRowIdField(
|
||||
row[key][0]
|
||||
id
|
||||
)[0]
|
||||
}
|
||||
// many to many
|
||||
|
|
Loading…
Reference in a new issue