This commit is contained in:
2026-03-10 16:19:32 +01:00
parent 44bc260061
commit c8fc4767a1
2 changed files with 24 additions and 3 deletions
+11 -1
View File
@@ -119,7 +119,17 @@ class Groepen_model extends MY_Model{
AND GR.module = {$module}
GROUP BY GR.id, GR.naam, GR.niveau, GR.totaantal, GR.ondersteuning
ORDER BY niveau, naam, GR.id ";
return $this->get_query_result();
// Tijdelijk debug: ook op productie loggen
error_log("=== GETGROEPEN DEBUG ===");
error_log("orgid: $orgid, schooljaarnr: $schooljaarnr, module: $module");
error_log("SQL: " . $this->sql);
$result = $this->get_query_result();
error_log("Result: " . ($result === FALSE ? 'FALSE' : count($result) . ' rows'));
return $result;
}
function getgekopieerdegroepen($orgid, $schooljaarnr, $module){
$this->sql = "SELECT GR.id,