|
...
|
...
|
@@ -51,7 +51,7 @@ class TicketChatController extends BaseController |
|
|
|
$chat->ticket_id = $ticket->id;
|
|
|
|
$chat->content = $validated['content'];
|
|
|
|
|
|
|
|
$files = $validated['files'];
|
|
|
|
$files = $validated['files'] ?? [];
|
|
|
|
if (empty($files) || (is_array($files) && count(array_filter($files, function($v){ return !is_null($v); })) === 0)) {
|
|
|
|
$chat->files = null;
|
|
|
|
} else {
|
...
|
...
|
|