Skip to content

Commit

Permalink
fixed data import skipping multiple entities! (#3128)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefano Ricci <[email protected]>
  • Loading branch information
SteRiccio and SteRiccio authored Nov 3, 2023
1 parent 0cfefe0 commit 98ac4d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class RecordsImportJob extends DataImportBaseJob {
const nodeDef = Survey.getNodeDefByUuid(Node.getNodeDefUuid(node))(survey)
const parentUuid = Node.getParentUuid(node)
const missingParentUuid = (!parentUuid && !NodeDef.isRoot(nodeDef)) || (parentUuid && !nodes[parentUuid])
const emptyMultipleAttribute = NodeDef.isMultiple(nodeDef) && Node.isValueBlank(node)
const emptyMultipleAttribute = NodeDef.isMultipleAttribute(nodeDef) && Node.isValueBlank(node)

if (missingParentUuid || emptyMultipleAttribute) {
const messagePrefix = `node with uuid ${Node.getUuid(node)}`
Expand Down

0 comments on commit 98ac4d6

Please sign in to comment.