diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index 4d4efc7..61550f5 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -268,8 +268,10 @@         // Prüft, ob 'storageBase' bereits Query-Parameter enthält ('?')         const actionSeparator = storageBase.indexOf('?') === -1 ? '?' : '&'; -        const loadUrl = storageBase + actionSeparator + 'action=get&resource=' + (window.__editorMode || 'templates') + '&id=' + (window.__editorId || 0); // KRITISCHE ERGÄNZUNG: Resource und ID -        const storeUrl = storageBase + actionSeparator + 'action=update&resource=' + (window.__editorMode || 'templates') + '&id=' + (window.__editorId || 0); // KRITISCHE ERGÄNZUNG: Resource und ID + const resourceName = (window.__editorMode || 'templates'); + const entityId = (window.__editorId || 0); + const loadUrl = `${storageBase}${actionSeparator}action=${resourceName}.get&id=${entityId}`; + const storeUrl = `${storageBase}${actionSeparator}action=${resourceName}.update&id=${entityId}`;         const storageConf = {             type: 'remote',