changes
This commit is contained in:
		| @@ -169,12 +169,10 @@ class ApiController extends Controller | ||||
|             $core = new CoreTicketController($PhpMailController, $NotificationController); | ||||
|             $this->request->merge(['body' => preg_replace('/[ ](?=[^>]*(?:<|$))/', ' ', nl2br($this->request->get('body')))]); | ||||
|             $request->replace($this->request->except('token', 'api_key')); | ||||
|             $request->merge(['token' => '']); | ||||
|  | ||||
|             $request_data = $request->except(['token']); | ||||
|             $response = $core->post_newticket(new CreateTicketRequest($request_data), $code, true); | ||||
|             $response = $core->post_newticket(new CreateTicketRequest($request->except('token','api_key')), $code, true); | ||||
|  | ||||
|             return response()->json(compact('response'));            //$response = $this->ticket->createTicket($user_id, $subject, $body, $helptopic, $sla, $priority, $source, $headers, $dept, $assignto, $form_data, $attach); | ||||
|             //$response = $this->ticket->createTicket($user_id, $subject, $body, $helptopic, $sla, $priority, $source, $headers, $dept, $assignto, $form_data, $attach); | ||||
|             //return $response; | ||||
|             /* | ||||
|              * return ticket details | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 noor
					noor