Internal: Fix gradebook evaluation duplication to copy in session, not in the base course - refs BT#21541

pull/5479/head
christianbeeznst 1 year ago
parent 3bebcbcf1f
commit dbf5aef1ff
  1. 8
      public/main/gradebook/lib/be/category.class.php
  2. 4
      public/main/inc/lib/sessionmanager.lib.php

@ -467,10 +467,12 @@ class Category implements GradebookItem
$session_id = api_get_session_id();
}
if (empty($session_id)) {
$sql .= $bond.' (session_id IS NULL OR session_id = 0) ';
} else {
if (!empty($session_id)) {
$sql .= $bond.' session_id = '.$session_id;
} else {
if (empty($id)) {
$sql .= $bond.' (session_id IS NULL OR session_id = 0) ';
}
}
$bond = ' AND';

@ -2793,7 +2793,7 @@ class SessionManager
null,
false,
$courseId,
0
$sessionId
);
//$cat->set_session_id($sessionId);
@ -2821,7 +2821,7 @@ class SessionManager
null,
false,
$courseId,
0
$sessionId
);
if (!empty($evaluationList)) {

Loading…
Cancel
Save