This commit is contained in:
2025-12-06 02:50:45 +01:00
parent a966e6dbb4
commit b2024ec0b2

View File

@@ -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',