QM: Wiedervorlage und Lesebestätigung, Platzhalter für Profilbilder (0.21.0)
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m49s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m54s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m29s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m38s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m40s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m7s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m13s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m24s
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m49s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m54s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m29s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m38s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m40s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m7s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m13s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m24s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8701b6d1b8
commit
4d855c8a74
213 changed files with 1729 additions and 515 deletions
|
|
@ -52,7 +52,14 @@ class Library
|
|||
public function update(QmEntry $entry, array $data, ?UploadedFile $reading, ?UploadedFile $editable, bool $removeEditable, User $user): QmEntry
|
||||
{
|
||||
return DB::transaction(function () use ($entry, $data, $reading, $editable, $removeEditable, $user) {
|
||||
$entry->update([...$this->attributes([...$data, 'type' => $entry->type]), 'updated_by' => $user->id]);
|
||||
$entry->fill([...$this->attributes([...$data, 'type' => $entry->type]), 'updated_by' => $user->id]);
|
||||
|
||||
// Neuer Prüftermin oder andere Verantwortliche → erneut erinnern
|
||||
if ($entry->isDirty(['review_due_at', 'responsible_id'])) {
|
||||
$entry->review_notified_at = null;
|
||||
}
|
||||
|
||||
$entry->save();
|
||||
|
||||
if ($entry->type !== QmEntry::FILE) {
|
||||
return $entry;
|
||||
|
|
@ -89,6 +96,10 @@ class Library
|
|||
'valid_from' => filled($data['valid_from'] ?? null) ? Carbon::parse($data['valid_from'])->toDateString() : now()->toDateString(),
|
||||
'url' => $type === QmEntry::LINK ? trim((string) $data['url']) : null,
|
||||
'form_id' => $type === QmEntry::FORM ? (int) $data['form_id'] : null,
|
||||
'review_due_at' => filled($data['review_due_at'] ?? null) ? Carbon::parse($data['review_due_at'])->toDateString() : null,
|
||||
'review_interval_months' => filled($data['review_interval_months'] ?? null) ? (int) $data['review_interval_months'] : null,
|
||||
'responsible_id' => filled($data['responsible_id'] ?? null) ? (int) $data['responsible_id'] : null,
|
||||
'requires_acknowledgement' => (bool) ($data['requires_acknowledgement'] ?? false),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue