Zeige Medienfassungen in der Verwaltung und halte Beschreibungen davon getrennt.
Deploy Test / test (push) Successful in 15s
Deploy Test / deploy (push) Successful in 22s

Eine Fassung bleibt nummeriert und kann deaktiviert werden. Beschreibung und fachliche Säulen gehören zum Medium und legen keine neue Fassung an.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-15 11:25:08 +01:00
1 parent 12f12117dd
commit af85a94cd5
28 files changed
+1002 -168

No files matched your search

+11 -1
View File
@@ -15,6 +15,7 @@ class ContentElementVersion extends Model
'body',
'metadata',
'change_note',
'block_reason',
];
protected function casts(): array
@@ -37,7 +38,16 @@ protected static function booted(): void
return;
}
$dirty = array_diff(array_keys($version->getDirty()), ['status', 'updated_at']);
$allowed = ['status', 'updated_at'];
if (
$original === ContentVersionStatus::Bereit->value
&& StatusValue::of($version->status) === ContentVersionStatus::Gesperrt->value
) {
$allowed[] = 'block_reason';
}
$dirty = array_diff(array_keys($version->getDirty()), $allowed);
if ($dirty !== [] || $original === ContentVersionStatus::Gesperrt->value) {
throw new DomainRuleException('Eine bereitgestellte Inhaltsfassung ist unveränderlich.');