clientBriefPdf => pdf

This commit is contained in:
isUnknown 2024-10-16 15:04:15 +02:00
parent 95064a39cd
commit a7f01d66e8
6 changed files with 7 additions and 7 deletions

View file

@ -24,7 +24,7 @@ tabs:
stepName:
type: hidden
value: test
clientBriefPdf:
pdf:
label: PDF
type: files
multiple: false

View file

@ -24,7 +24,7 @@ return [
try {
$name = crc32($upload['name'] . microtime()) . '_' . $upload['name'];
$existingFileId = $page->clientBriefPdf()->id() ?? null;
$existingFileId = $page->pdf()->id() ?? null;
if ($existingFileId) {
$existingFile = $kirby->file($existingFileId);
@ -43,7 +43,7 @@ return [
]);
$newPage = $page->update([
"clientBriefPdf" => $newFile->id()
"pdf" => $newFile->id()
]);
return $newPage->toArray();