From 8a615016654a87bc177a919075ab8e67726bacb4 Mon Sep 17 00:00:00 2001 From: Vasilis Daloukas Date: Sun, 12 Jul 2015 11:17:13 +0300 Subject: [PATCH] CONTRIB-5816: Question bank category not retrieved when Crossword is edited --- mod_form.php | 5 ----- version.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/mod_form.php b/mod_form.php index 7f414d3..ff4668e 100755 --- a/mod_form.php +++ b/mod_form.php @@ -468,11 +468,6 @@ class mod_game_mod_form extends moodleform_mod { $default_values->param5 = 1; } - //repair questioncategoryid - $categoryid = $default_values->questioncategoryid; - $contextid = $DB->get_field( 'question_categories', 'contextid', array( 'id' => $categoryid)); - $default_values->questioncategoryid = $categoryid.','.$contextid; - if( $default_values->gamekind == 'snakes'){ if( isset( $default_values->param9)){ $a = explode( '#',$default_values->param9); diff --git a/version.php b/version.php index 1c8d2a3..5f922b6 100755 --- a/version.php +++ b/version.php @@ -22,7 +22,7 @@ if( !isset( $plugin)) $useplugin = 2; $plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics) -$plugin->version = 2014122901; // The current module version (Date: YYYYMMDDXX) +$plugin->version = 2015071201; // The current module version (Date: YYYYMMDDXX) $plugin->requires = 2010112400; // Requires Moodle 2.0 $plugin->cron = 0; // Period for cron to check this module (secs) $plugin->release = '3.24.29';