Skip to content

Commit

Permalink
Fix testDetails.php redirect (#2569)
Browse files Browse the repository at this point in the history
The redirect for `testDetails.php` currently throws a 500 error. This PR
resolves the error by querying the correct database column.
  • Loading branch information
williamjallen authored Nov 20, 2024
1 parent f88bd44 commit 7030a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7030a25

Please sign in to comment.