From ff7d6f8c9fa80d9596df6fac7ce8c24479905a59 Mon Sep 17 00:00:00 2001 From: bdaloukas Date: Sun, 27 Jan 2013 16:33:09 +0200 Subject: [PATCH] Fix: ShowAnswers database error when using categories in glossaries --- showanswers.php | 2 +- version.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/showanswers.php b/showanswers.php index 403e730..72fc673 100755 --- a/showanswers.php +++ b/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; } diff --git a/version.php b/version.php index b01010a..dc5b330 100755 --- a/version.php +++ b/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)';