Skip to content

Commit

Permalink
fix: allow non-project document
Browse files Browse the repository at this point in the history
  • Loading branch information
keenthekeen committed May 12, 2024
1 parent a2b72c0 commit 5b515e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/DocumentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function update(Request $request, Document $document): \Symfony\Component
'tag' => 'nullable|string|in:approval,summary',
'attachment' => 'nullable|file|mimes:pdf,docx,doc|max:20000', // File size limit: 20,000 KB
'approved_attachment' => 'nullable|file|mimes:pdf|max:20000',
'project_id' => 'required_with:tag|integer|min:1',
'project_id' => 'nullable|required_with:tag|integer|min:1|exists:projects,id',
'objectives' => 'required_if:tag,summary|array',
'expense' => 'required_if:tag,summary|array',
]);
Expand Down

0 comments on commit 5b515e9

Please sign in to comment.