mirror of
				https://github.com/cp6/my-idlers.git
				synced 2025-11-03 23:59:09 +00:00 
			
		
		
		
	Fixed YABs insert error displaying
Fixed YABs insert error displaying
This commit is contained in:
		
							parent
							
								
									464b2096c4
								
							
						
					
					
						commit
						f6cf9c7a65
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -37,8 +37,8 @@ class YabsController extends Controller
 | 
				
			||||||
        $yabs = $process->yabsOutputAsJson($request->server_id, $request->yabs);
 | 
					        $yabs = $process->yabsOutputAsJson($request->server_id, $request->yabs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (isset($yabs['error_id'])) {
 | 
					        if (isset($yabs['error_id'])) {
 | 
				
			||||||
            return redirect()->route('yabs.index')
 | 
					            return back()->withErrors(["yabs" => 'Problem inserting YABs. Error id ' . $yabs['error_id']])->withInput();
 | 
				
			||||||
                ->with('error', 'Problem inserting YABs. Error id ' . $yabs['error_id']);
 | 
					            //return redirect()->route('yabs.index')->with('error', 'Problem inserting YABs. Error id ' . $yabs['error_id']);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        //No errors, do insert
 | 
					        //No errors, do insert
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue