owl-cli 6.111.0 → 6.112.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.
|
@@ -382,6 +382,10 @@ var @projectCodeService = (function (pigeon) {
|
|
|
382
382
|
|
|
383
383
|
|
|
384
384
|
getNormalizedDoc: function (data) {
|
|
385
|
+
var meta = spec['#meta'];
|
|
386
|
+
var indexFields = meta.indexFields;
|
|
387
|
+
|
|
388
|
+
|
|
385
389
|
var obj = JSON.parse(JSON.stringify(data))
|
|
386
390
|
|
|
387
391
|
var fields = formSpecs.fields;
|
|
@@ -397,6 +401,11 @@ var @projectCodeService = (function (pigeon) {
|
|
|
397
401
|
if(field.index==='no'){
|
|
398
402
|
delete obj[field.key]
|
|
399
403
|
}
|
|
404
|
+
if(indexFields && indexFields.length>0){
|
|
405
|
+
if(indexFields.indexOf(field.key)==-1){
|
|
406
|
+
delete obj[field.key]
|
|
407
|
+
}
|
|
408
|
+
}
|
|
400
409
|
}
|
|
401
410
|
}
|
|
402
411
|
f.tranverseFields(formSpecs, function (field, ctx) {
|
|
@@ -416,7 +425,12 @@ var @projectCodeService = (function (pigeon) {
|
|
|
416
425
|
}
|
|
417
426
|
}
|
|
418
427
|
else {
|
|
419
|
-
if(
|
|
428
|
+
if(indexFields && indexFields.length>0){
|
|
429
|
+
if(indexFields.indexOf(field.key)==-1){
|
|
430
|
+
f.deleteValue(field.key,obj);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
else if(field.index==='no'){
|
|
420
434
|
f.deleteValue(field.key,obj);
|
|
421
435
|
}
|
|
422
436
|
else{
|