From 61ef0dc274f603ccfb8c9ea583204205a8075ec1 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Thu, 28 Apr 2022 17:28:45 +0800 Subject: [PATCH] * Fix bug #15662. --- module/api/js/common.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/api/js/common.js b/module/api/js/common.js index d52f04a318..a9e2d2a449 100644 --- a/module/api/js/common.js +++ b/module/api/js/common.js @@ -426,7 +426,11 @@ try { this.getInitField() ]; } - this.current = this.params[this.structType]; + this.current.structType = this.structType; + for(let key = this.current.length - 1; key >= 0; key--){ + this.current[key].structType = this.structType; + if(this.structType == 'formData' && this.current[key].sub != 1) this.current.splice(key, 1); + } }, getPadding(sub) { var padding = 0;