Schütze den vorherigen Programmstand vor Kompositionen unbekannter Art
CI Feature / test (push) Successful in 2m14s
Deploy Test / test (push) Successful in 2m13s
Deploy Test / deploy (push) Successful in 24s

Eine Komposition mit einem kind-Wert, den erst ein neuerer Stand schreibt, gilt als nicht vorhanden
(globaler Bereichsfilter statt Absturz im Enum-Cast). Aufbauten mit solchen Bestandteilen werden hier
weder veröffentlicht noch als Angebot aktiviert, der Editor bleibt schreibgeschützt, die Mitgliederansicht
zeigt den Bestandteil nicht. Grundlage für die Übungsverwaltung, damit ein Rückfall nichts verliert oder offenlegt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-23 16:39:31 +01:00
1 parent da02e0bbda
commit ef56befc0e
16 files changed
+513 -5

No files matched your search

+10
View File
@@ -140,6 +140,12 @@ public function rowForTarget(string $target, int $exceptCompositionId, bool $all
}
$composition = $version->composition;
// Art, die dieser Programmstand nicht kennt: nicht anbieten und nicht laden (Rückfallschutz).
if ($composition === null) {
return null;
}
$kind = $composition->editorialContentKind?->label
?: ($composition->kind instanceof CompositionKind ? $composition->kind->deskLabel() : 'Zusammenstellung');
@@ -1028,6 +1034,10 @@ private function suggestPicture(array $members, array $seen = []): ?array
$nested = $version->composition;
if ($nested === null) {
continue;
}
if ($this->cardUrl('komposition', $nested->id, $nested->thumbnail_path) !== null) {
return [
'kind' => 'komposition',