Führe den gemeinsamen Redaktionsarbeitsplatz ein.
Texte, Medienzuordnung und Einordnung teilen sich einen Arbeitsplatz. Fassungen, Rechte und das Datenmodell bleiben unverändert.
This commit is contained in:
1 parent
a359a5fb69
commit
4c29ab2593
140 files changed
+6705
-201
No files matched your search
@@ -83,6 +83,22 @@ public function saveLicenseEditorial(): void
|
||||
: 'Gespeichert. Prüfe den Artikelstand, er hat sich geändert.';
|
||||
}
|
||||
|
||||
public function redaktionUnsaved(): bool
|
||||
{
|
||||
/** @var LicenseArticle $article */
|
||||
$article = $this->getRecord()->fresh() ?? $this->getRecord();
|
||||
$kind = filled($this->kindId) ? (int) $this->kindId : null;
|
||||
$storedKind = $article->editorial_content_kind_id !== null ? (int) $article->editorial_content_kind_id : null;
|
||||
|
||||
return trim($this->workingTitle) !== trim((string) ($article->working_title ?? ''))
|
||||
|| trim($this->displayTitle) !== trim((string) ($article->display_title ?? ''))
|
||||
|| trim($this->teaser) !== trim((string) ($article->teaser ?? ''))
|
||||
|| trim($this->summary) !== trim((string) ($article->summary ?? ''))
|
||||
|| trim($this->descriptionText) !== trim((string) ($article->description ?? ''))
|
||||
|| trim($this->searchTerms) !== trim((string) ($article->search_terms ?? ''))
|
||||
|| $kind !== $storedKind;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<array{label: string, values: list<array{id: int, label: string}>}>
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user