fh-forms
Advanced tools
Comparing version 1.15.0-rhmap-1157.2 to 1.15.0-rhmap-1157.3
@@ -115,3 +115,3 @@ var csvStr = require('./csvStringFromValue'); | ||
var fieldKeysProcessed = []; | ||
var fieldsProcessed = {}; | ||
fieldKeys.forEach(function(fieldKey) { | ||
@@ -122,2 +122,6 @@ // check if its a repeating form (and extra headers required) | ||
var fieldsInThisSection = sectionUtils.getFieldsInSection(field._id, _.values(mergedFieldEntries)); | ||
_.each(fieldsInThisSection, function(field) { | ||
fieldsProcessed[field._id] = true; | ||
}); | ||
for (var i = 0; i < field.fieldOptions.definition.maxRepeat; i++) { | ||
@@ -128,3 +132,3 @@ _.each(fieldsInThisSection, function(fieldInThisSection) { | ||
} | ||
} else { | ||
} else if (!fieldsProcessed[fieldKey]) { | ||
fieldKeysProcessed.push({key: fieldKey}); | ||
@@ -131,0 +135,0 @@ } |
@@ -106,3 +106,3 @@ var csvGeneration = require('./csvValues'); | ||
// dont need section there, just a field name/code + sectionIndex+1 | ||
fieldsProcessed.concat(repeatingSectionData.idsOfFieldsInSection); | ||
fieldsProcessed = fieldsProcessed.concat(repeatingSectionData.idsOfFieldsInSection); | ||
@@ -109,0 +109,0 @@ for (var i = 0; i < field.fieldOptions.definition.maxRepeat; i++) { |
{ | ||
"name": "fh-forms", | ||
"version": "1.15.0-rhmap-1157.2", | ||
"version": "1.15.0-rhmap-1157.3", | ||
"description": "Cloud Forms API for form submission", | ||
@@ -5,0 +5,0 @@ "main": "fhforms.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3057990
43469