Fix incorrect Lang:get using, undeclared variable, missing csrf token
This commit is contained in:
@@ -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();
|
||||
|
||||
|
2
app/Http/Controllers/Client/helpdesk/UnAuthController.php
Normal file → Executable file
2
app/Http/Controllers/Client/helpdesk/UnAuthController.php
Normal file → Executable file
@@ -172,7 +172,7 @@ class UnAuthController extends Controller
|
||||
*/
|
||||
public function rating($id, Request $request, \App\Model\helpdesk\Ratings\RatingRef $rating_ref)
|
||||
{
|
||||
foreach ($request->all() as $key => $value) {
|
||||
foreach ($request->except(['_token']) as $key => $value) {
|
||||
if (strpos($key, '_') !== false) {
|
||||
$ratName = str_replace('_', ' ', $key);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user