diff --git a/Modules/EmployeeTalk/classes/Talk/class.ilEmployeeTalkTableGUI.php b/Modules/EmployeeTalk/classes/Talk/class.ilEmployeeTalkTableGUI.php index eb4bba46679b..99a1869b2bf0 100644 --- a/Modules/EmployeeTalk/classes/Talk/class.ilEmployeeTalkTableGUI.php +++ b/Modules/EmployeeTalk/classes/Talk/class.ilEmployeeTalkTableGUI.php @@ -206,8 +206,8 @@ public function setTalkData(array $talks): void continue; } - if ($filter['etal_employee'] !== "") { - $filterUser = ilObjUser::getUserIdByLogin($filter['etal_employee']); + if (trim($filter['etal_employee']) !== "") { + $filterUser = ilObjUser::getUserIdByLogin(trim($filter['etal_employee'])); if ($val->getEmployee() !== $filterUser) { continue; } @@ -226,15 +226,15 @@ public function setTalkData(array $talks): void $employeeName = ilObjUser::_lookupLogin($talkData->getEmployee()); } - if ($filter['etal_superior'] !== "") { - $filterUser = ilObjUser::getUserIdByLogin($filter['etal_superior']); + if (trim($filter['etal_superior']) !== "") { + $filterUser = ilObjUser::getUserIdByLogin(trim($filter['etal_superior'])); if ($talk->getOwner() !== $filterUser) { continue; } } - if ($filter['etal_title'] !== "") { - if (strpos($talk->getTitle(), $filter['etal_title']) === false) { + if (trim($filter['etal_title']) !== "") { + if (strpos(strtolower($talk->getTitle()), strtolower(trim($filter['etal_title']))) === false) { continue; } } @@ -263,8 +263,8 @@ public function setTalkData(array $talks): void $template = ilObjectFactory::getInstanceByObjId($talkData->getTemplateId()); $template_title = $template->getTitle(); } - if ($filter['etal_template'] !== "") { - if (strpos($template_title, $filter['etal_template']) === false) { + if (trim($filter['etal_template']) !== "") { + if (strpos(strtolower($template_title), strtolower(trim($filter['etal_template']))) === false) { continue; } }