Browse Source

Fix mod_form, show_answers: show numbers of entries in each glossary and question category

MOODLE_20_STABLE
bdaloukas 8 years ago
parent
commit
ff577e272f
  1. 2
      mod_form.php

2
mod_form.php

@ -424,7 +424,7 @@ class mod_game_mod_form extends moodleform_mod {
$sql2 = "SELECT COUNT(*) FROM {$CFG->prefix}glossary_entries ge WHERE ge.glossaryid=g.id";
$sql = "SELECT id, name, ($sql2) as c FROM {$CFG->prefix}glossary g WHERE $select";
$recs = $DB->get_records_sql( $sql);
foreach ( $recs as $rec) {
foreach ($recs as $rec) {
$a[ - $rec->id] = $rec->name.' -> ('.$rec->c.')';
}
// Fills with the count of entries in each category.

Loading…
Cancel
Save