luci-base: fix order of clone bug
authorChristian Korber <redacted>
Thu, 21 May 2026 14:20:18 +0000 (16:20 +0200)
committerPaul Donald <redacted>
Mon, 25 May 2026 08:35:28 +0000 (11:35 +0300)
If a rule was manipulated via cli, the rule was appended to the end if
cloned.
Somehow the reason appears to be that `name` was incorrectly assigned,
because name was the event Object this way.

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

index 3d87b3d7861b01a82656739f637e4d21c81bc904..54fca6930d21edd95ecf4f6c8cb7f859cdb2e479 100644 (file)
@@ -2761,7 +2761,7 @@ const CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection
         * @param {string} name
         * @returns {null}
         */
-       handleClone(section_id, put_next, name) {
+       handleClone(section_id, put_next, ev, name) {
                let config_name = this.uciconfig || this.map.config;
 
                this.map.data.clone(config_name, this.sectiontype, section_id, put_next, name);
git clone https://git.99rst.org/PROJECT