Skip to content

Commit 6c8c24b

Browse files
committed
Gradebook #fix no action when clicking on import result - refs BT#23014
1 parent ab212d3 commit 6c8c24b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

main/gradebook/gradebook_add_result.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@
88
api_protect_course_script(true);
99
api_block_anonymous_users();
1010
GradebookUtils::block_students();
11+
12+
if (isset($_GET['import'])) {
13+
$queryString = $_SERVER['QUERY_STRING'];
14+
$webPath = api_get_path(WEB_CODE_PATH);
15+
$newUrl = $webPath . 'gradebook/gradebook_view_result.php';
16+
if (!empty($queryString)) {
17+
$newUrl .= '?' . $queryString;
18+
}
19+
header("Location: $newUrl");
20+
exit;
21+
}
1122

1223
$selectEval = isset($_GET['selecteval']) ? (int) $_GET['selecteval'] : 0;
1324

0 commit comments

Comments
 (0)