Browse Source

Fix: ShowAnswers database error when using categories in glossaries

MOODLE_20_STABLE
bdaloukas 12 years ago
parent
commit
ff7d6f8c9f
  1. 2
      showanswers.php
  2. 4
      version.php

2
showanswers.php

@ -336,7 +336,7 @@ function game_showanswers_glossary( $game)
" AND gec.categoryid = {$game->glossarycategoryid}";
$table .= ",{glossary_entries_categories} gec";
}
$sql = "SELECT id,definition,concept FROM $table WHERE $select ORDER BY definition";
$sql = "SELECT ge.id,definition,concept FROM $table WHERE $select ORDER BY definition";
if( ($questions = $DB->get_records_sql( $sql)) === false){
return;
}

4
version.php

@ -11,7 +11,7 @@
defined('MOODLE_INTERNAL') || die();
$module->component = 'mod_game'; // Full name of the plugin (used for diagnostics)
$module->version = 2013012701; // The current module version (Date: YYYYMMDDXX)
$module->version = 2013012702; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2010112400; // Requires Moodle 2.0
$module->cron = 0; // Period for cron to check this module (secs)
$module->release = 'v.2.13.27 (2013012701)';
$module->release = 'v.2.13.27 (2013012702)';

Loading…
Cancel
Save