luci-base: remove unnecessary constraint
authorChristian Korber <redacted>
Tue, 26 May 2026 07:15:30 +0000 (09:15 +0200)
committerPaul Donald <redacted>
Tue, 26 May 2026 08:42:29 +0000 (11:42 +0300)
This constraint didn't interfere with the clone bug(#8613) and is
therefore removed.

Signed-off-by: Christian Korber <redacted>
modules/luci-base/htdocs/luci-static/resources/form.js

index 7e5c4a256970c5922f59e582591fa9613f531292..6f14678de1ca8fc29ed384dafd14a578ab925a36 100644 (file)
@@ -2161,11 +2161,7 @@ const CBIAbstractValue = CBIAbstractElement.extend(/** @lends LuCI.form.Abstract
                                }
                        }
                        else if (this.forcewrite || !isEqual(cval, fval)) {
-                               /*
-                                * do not remove elements that are not rendered yet
-                                */
-                               if (this.map.findElement('data-field', this.cbid(section_id)) != null)
-                                       return Promise.resolve(this.write(section_id, fval));
+                               return Promise.resolve(this.write(section_id, fval));
                        }
                }
                else if (!this.retain) {
git clone https://git.99rst.org/PROJECT