diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-04-23 09:47:35 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-04-23 09:47:35 +0000 |
| commit | ec645615ce5e29469fda57d689bb6b5c3f7c0b65 (patch) | |
| tree | fd03a9448d6736ee00f498a6c5ca8f7f7e59cbe1 /app/controllers/shared/log_event.php | |
| parent | e0b123ac6abb86ed90426638e3f617a02925c156 (diff) | |
fixes #4062
Closes #4062
Merge request studip/studip!2908
Diffstat (limited to 'app/controllers/shared/log_event.php')
| -rw-r--r-- | app/controllers/shared/log_event.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/shared/log_event.php b/app/controllers/shared/log_event.php index 0355e45..3d8af7e 100644 --- a/app/controllers/shared/log_event.php +++ b/app/controllers/shared/log_event.php @@ -122,12 +122,12 @@ class Shared_LogEventController extends MVVController $search_action .= " AND `log_actions`.`name` LIKE CONCAT('%_'," . DBManager::get()->quote($log_action) . ")"; } - $statement = DBManager::get()->prepare("SELECT *, `log_actions`.`name` + $statement = DBManager::get()->prepare("SELECT * FROM `log_events` LEFT JOIN `log_actions` ON `log_events`.`action_id` = `log_actions`.`action_id` WHERE `info` = ? " . $search_action . " - ORDER BY `log_events`.`mkdate` DESC"); + ORDER BY `log_events`.`event_id` DESC"); $statement->execute([$mvv_field]); $res = $statement->fetchOne(); if ($res) { |
