File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ public function get_last_update($ticketList)
249249 {
250250 return response ()->json ([
251251 'result ' => 'ok ' ,
252- 'message ' => $ this ->last_update_string ($ ticketList )
252+ 'message ' => $ this ->last_update_string ()
253253 ]);
254254 }
255255
@@ -258,7 +258,7 @@ public function get_last_update($ticketList)
258258 *
259259 * @return String
260260 */
261- public function last_update_string ($ ticketList = null )
261+ public function last_update_string ()
262262 {
263263 $ last_update = Ticket::orderBy ('updated_at ' , 'desc ' )->first ();
264264
@@ -2467,7 +2467,7 @@ public function changeAgent(Request $request)
24672467 return response ()->json ([
24682468 'result ' => $ result ,
24692469 'message ' => $ message ,
2470- 'last_update ' => $ this ->last_update_string ($ request -> ticketList )
2470+ 'last_update ' => $ this ->last_update_string ()
24712471 ]);
24722472 }
24732473
@@ -2513,7 +2513,7 @@ public function changePriority(Request $request){
25132513 return response ()->json ([
25142514 'result ' => $ result ,
25152515 'message ' => $ message ,
2516- 'last_update ' => $ this ->last_update_string ($ request -> ticketList )
2516+ 'last_update ' => $ this ->last_update_string ()
25172517 ]);
25182518 }
25192519
@@ -2559,7 +2559,7 @@ public function changeStatus(Request $request){
25592559 return response ()->json ([
25602560 'result ' => $ result ,
25612561 'message ' => $ message ,
2562- 'last_update ' => $ this ->last_update_string ($ request -> ticketList )
2562+ 'last_update ' => $ this ->last_update_string ()
25632563 ]);
25642564 }
25652565
Original file line number Diff line number Diff line change 8787 var form = $ (this );
8888 var Form_Data = new FormData (form[0 ]);
8989
90- // Append existent last_update value
91- Form_Data .append (' ticketList' , ' {{ $ticketList } }' );
92-
9390 $ .ajax ({
9491 processData: false ,
9592 contentType: false ,
113110
114111 var ajax_data = {
115112 _token: " {{ csrf_token () } }" ,
116- ticket_id: $ (this ).attr (' data-ticket-id' ),
117- ticketList: ' {{ $ticketList } }'
113+ ticket_id: $ (this ).attr (' data-ticket-id' )
118114 };
119115
120116 if ($ (this ).attr (' data-field' ) == ' priority' ){
You can’t perform that action at this time.
0 commit comments