Fix issue with renamed field.

This commit is contained in:
James Cole
2022-05-04 05:53:47 +02:00
parent cba3590dec
commit 51e23dae21
20 changed files with 82 additions and 82 deletions

View File

@@ -45,10 +45,10 @@ class UpdateRequest extends FormRequest
public function getAll(): array
{
$fields = [
'filename' => ['filename', 'string'],
'title' => ['title', 'string'],
'filename' => ['filename', 'convertString'],
'title' => ['title', 'convertString'],
'notes' => ['notes', 'stringWithNewlines'],
'attachable_type' => ['attachable_type', 'string'],
'attachable_type' => ['attachable_type', 'convertString'],
'attachable_id' => ['attachable_id', 'integer'],
];