Fix incorrect Lang:get using, undeclared variable, missing csrf token

This commit is contained in:
maranqz
2019-07-21 14:43:52 +03:00
committed by Manish Verma
parent 41d4f97495
commit fd3e47b96d
5 changed files with 21 additions and 7 deletions

View File

@@ -270,12 +270,13 @@ class FormController extends Controller
public function post_ticket_reply($id, Request $request)
{
try {
if ($comment != null) {
$comment = $request->input('comment');
if (!empty($comment)) {
$tickets = Tickets::where('id', '=', $id)->first();
$thread = Ticket_Thread::where('ticket_id', '=', $tickets->id)->first();
$subject = $thread->title.'[#'.$tickets->ticket_number.']';
$body = $request->input('comment');
$body = $comment;
$user_cred = User::where('id', '=', $tickets->user_id)->first();