From b898cc1e5e6dfcc335c0d123770cf71d4ebd3184 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 23 Jan 2024 13:30:33 +0800 Subject: [PATCH] * Fix bug #44683, replace duplicate plan picker name. --- lib/zin/wg/productsbox/js/v1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zin/wg/productsbox/js/v1.js b/lib/zin/wg/productsbox/js/v1.js index 2e1967f22b..53e9a80dd8 100644 --- a/lib/zin/wg/productsbox/js/v1.js +++ b/lib/zin/wg/productsbox/js/v1.js @@ -68,7 +68,7 @@ function addNewLine(e) index = id > index ? id : index; }) - while($('[name="plans[' + index + ']"]').length > 0) index ++; + while($('[name="plans[' + index + '][]"]').length > 0) index ++; /* 处理新一行控件的显示/隐藏,宽度/是否居中等样式问题. */ newLine.addClass('newLine');