Internal: Fix issue with excessive conversion of name to title CourseControllerTest

pull/5126/head
Yannick Warnier 10 months ago
parent 985d2449f4
commit ba5bfe8c7d
  1. 4
      src/CoreBundle/Controller/CourseController.php

@ -241,13 +241,13 @@ class CourseController extends ToolBaseController
#[Route('/{cid}/tool/{toolName}', name: 'chamilo_core_course_redirect_tool')]
public function redirectTool(
Request $request,
string $toolTitle,
string $toolName,
CToolRepository $repo,
ToolChain $toolChain
): RedirectResponse {
/** @var CTool|null $tool */
$tool = $repo->findOneBy([
'title' => $toolTitle,
'title' => $toolName,
]);
if (null === $tool) {

Loading…
Cancel
Save