bug-fix-patch
Rating csrf tofen issue fix
This commit is contained in:
@@ -2068,6 +2068,9 @@ class TicketController extends Controller
|
||||
public function rating($id, Request $request, \App\Model\helpdesk\Ratings\RatingRef $rating_ref)
|
||||
{
|
||||
foreach ($request->all() as $key => $value) {
|
||||
if ($key == "_token") {
|
||||
continue;
|
||||
}
|
||||
if (strpos($key, '_') !== false) {
|
||||
$ratName = str_replace('_', ' ', $key);
|
||||
} else {
|
||||
@@ -2103,6 +2106,9 @@ class TicketController extends Controller
|
||||
public function ratingReply($id, Request $request, \App\Model\helpdesk\Ratings\RatingRef $rating_ref)
|
||||
{
|
||||
foreach ($request->all() as $key => $value) {
|
||||
if ($key == "_token") {
|
||||
continue;
|
||||
}
|
||||
$key1 = explode(',', $key);
|
||||
if (strpos($key1[0], '_') !== false) {
|
||||
$ratName = str_replace('_', ' ', $key1[0]);
|
||||
|
@@ -42,6 +42,7 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', \Cryp
|
||||
<table><tbody>
|
||||
<?php $ratings = App\Model\helpdesk\Ratings\Rating::orderby('display_order')->get(); ?>
|
||||
<form id="foo">
|
||||
{!! csrf_field() !!}
|
||||
@foreach($ratings as $rating)
|
||||
|
||||
@if($rating->rating_area == 'Helpdesk Area')
|
||||
@@ -196,6 +197,7 @@ foreach ($conversations as $conversation) {
|
||||
}
|
||||
?>
|
||||
<form class="foo2">
|
||||
{{ csrf_field() }}
|
||||
<tr>
|
||||
<th><div class="ticketratingtitle">{!! $rating->name !!} </div></th> 
|
||||
|
||||
|
Reference in New Issue
Block a user