From 7030a25504523a9d58afd2baeeaa71a3156966a3 Mon Sep 17 00:00:00 2001 From: William Allen <16820599+williamjallen@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:32:35 -0500 Subject: [PATCH] Fix `testDetails.php` redirect (#2569) The redirect for `testDetails.php` currently throws a 500 error. This PR resolves the error by querying the correct database column. --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 54338a13f..a6cf4eaf4 100755 --- a/routes/web.php +++ b/routes/web.php @@ -134,7 +134,7 @@ Route::get('/testDetails.php', function (Request $request) { $buildid = $request->query('build'); $testid = $request->query('test'); - $buildtest = \App\Models\Test::where('buildid', $buildid)->where('testid', $testid)->first(); + $buildtest = \App\Models\Test::where('buildid', $buildid)->where('id', $testid)->first(); if ($buildtest !== null) { return redirect("/tests/{$buildtest->id}", 301); }