tickets for client account bug fixed
This commit is contained in:
parent
c1d7b7662c
commit
84485ca405
|
|
@ -112,7 +112,7 @@ public function postTicket(TicketRequest $request)
|
|||
$ticket = new Ticket($request->only('content', 'title','category_id'));
|
||||
$client = $request->user();
|
||||
$account = Account::find($client->account_id);
|
||||
$ticket['client_id'] = $account->id;
|
||||
$ticket['client_id'] = $client->id;
|
||||
$status = Status::where('name', 'Open')->firstOrFail();
|
||||
$ticket['status_id'] = $status->id;
|
||||
$ticket['last_sender'] = 'client';
|
||||
|
|
|
|||
Loading…
Reference in New Issue