owl-cli 6.112.0 → 6.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -388,6 +388,18 @@ var @projectCodeService = (function (pigeon) {
|
|
|
388
388
|
|
|
389
389
|
var obj = JSON.parse(JSON.stringify(data))
|
|
390
390
|
|
|
391
|
+
var newObj = {};
|
|
392
|
+
if(indexFields && indexFields.length>0){
|
|
393
|
+
for(var i=0; i<indexFields.length; i++){
|
|
394
|
+
var key = indexFields[i];
|
|
395
|
+
var value = f.getValue(key,obj);
|
|
396
|
+
if(value){
|
|
397
|
+
f.setValue(key,value,newObj);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
obj = newObj;
|
|
402
|
+
|
|
391
403
|
var fields = formSpecs.fields;
|
|
392
404
|
for(var i=0; i<fields.length; i++){
|
|
393
405
|
var field= fields[i];
|
|
@@ -401,11 +413,7 @@ var @projectCodeService = (function (pigeon) {
|
|
|
401
413
|
if(field.index==='no'){
|
|
402
414
|
delete obj[field.key]
|
|
403
415
|
}
|
|
404
|
-
|
|
405
|
-
if(indexFields.indexOf(field.key)==-1){
|
|
406
|
-
delete obj[field.key]
|
|
407
|
-
}
|
|
408
|
-
}
|
|
416
|
+
|
|
409
417
|
}
|
|
410
418
|
}
|
|
411
419
|
f.tranverseFields(formSpecs, function (field, ctx) {
|