Fix ids of instruction items in devtools (#4254)
authorFabii547 <Fabii547@users.noreply.github.com>
Thu, 3 Jun 2021 10:07:18 +0000 (12:07 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Jun 2021 10:07:18 +0000 (12:07 +0200)
ts/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Instructions.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/Instructions.js

index 417a5e98e2f895e4cf1da791360d9fde7c8dca96..02c62063e623d5005515f9f58f941ef32e4735ea 100644 (file)
@@ -183,7 +183,7 @@ class Instructions {
 
     const listItem = document.createElement("li");
     listItem.className = "sortableNode";
-    listItem.id = `${this.formFieldId}_instructions${instructionsId}`;
+    listItem.id = `${this.formFieldId}_instruction${instructionId}`;
     listItem.dataset.instructionId = instructionId.toString();
     listItem.dataset.application = instructionData.application;
     listItem.dataset.pip = instructionData.pip;
index 74376620664ed4a3c36a1790edd7936ec9a9a1a6..1d4d5988597347af5ea96f057623f15dc4a6d27a 100644 (file)
@@ -102,7 +102,7 @@ define(["require", "exports", "tslib", "../../../../../../Core", "../../../../..
             const instructionList = document.getElementById(`${this.formFieldId}_instructions${instructionsId}_instructionList`);
             const listItem = document.createElement("li");
             listItem.className = "sortableNode";
-            listItem.id = `${this.formFieldId}_instructions${instructionsId}`;
+            listItem.id = `${this.formFieldId}_instruction${instructionId}`;
             listItem.dataset.instructionId = instructionId.toString();
             listItem.dataset.application = instructionData.application;
             listItem.dataset.pip = instructionData.pip;