owl-cli 6.112.0 → 6.114.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,19 @@ 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
|
+
obj = newObj;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
|
|
391
404
|
var fields = formSpecs.fields;
|
|
392
405
|
for(var i=0; i<fields.length; i++){
|
|
393
406
|
var field= fields[i];
|
|
@@ -401,11 +414,7 @@ var @projectCodeService = (function (pigeon) {
|
|
|
401
414
|
if(field.index==='no'){
|
|
402
415
|
delete obj[field.key]
|
|
403
416
|
}
|
|
404
|
-
|
|
405
|
-
if(indexFields.indexOf(field.key)==-1){
|
|
406
|
-
delete obj[field.key]
|
|
407
|
-
}
|
|
408
|
-
}
|
|
417
|
+
|
|
409
418
|
}
|
|
410
419
|
}
|
|
411
420
|
f.tranverseFields(formSpecs, function (field, ctx) {
|