This commit is contained in:
2026-01-21 22:44:32 +01:00
parent 107de0b7db
commit a09a07bcfc
7 changed files with 324 additions and 32 deletions

View File

@@ -502,6 +502,12 @@
// 🚨 KRITISCH: Server erwartet das Feld 'json'
json: jsonProjectDataRaw,
};
const activateNext = B.NEXT_ACTIVATE_VERSION || window.NEXT_ACTIVATE_VERSION;
if (activateNext) {
dataToSend.activate_version = 1;
B.NEXT_ACTIVATE_VERSION = 0;
window.NEXT_ACTIVATE_VERSION = 0;
}
if (SECTION_ID) {
dataToSend.section_id = SECTION_ID;
}

View File

@@ -191,7 +191,7 @@
return [];
}
const promises = sections.map(section =>
fetchData('content', 'list', { section_id: section.id })
fetchData('content', 'list', { section_id: section.id, active_only: 1 })
.then(items => (Array.isArray(items) ? items : []).map(i => ({
...i,
kind: String(section.slug || '').toLowerCase(),