Browse Source

CONTRIB-5816: Question bank category not retrieved when Crossword is edited

MOODLE_20_STABLE
Vasilis Daloukas 10 years ago
parent
commit
8a61501665
  1. 5
      mod_form.php
  2. 2
      version.php

5
mod_form.php

@ -468,11 +468,6 @@ class mod_game_mod_form extends moodleform_mod {
$default_values->param5 = 1; $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( $default_values->gamekind == 'snakes'){
if( isset( $default_values->param9)){ if( isset( $default_values->param9)){
$a = explode( '#',$default_values->param9); $a = explode( '#',$default_values->param9);

2
version.php

@ -22,7 +22,7 @@ if( !isset( $plugin))
$useplugin = 2; $useplugin = 2;
$plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics) $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->requires = 2010112400; // Requires Moodle 2.0
$plugin->cron = 0; // Period for cron to check this module (secs) $plugin->cron = 0; // Period for cron to check this module (secs)
$plugin->release = '3.24.29'; $plugin->release = '3.24.29';

Loading…
Cancel
Save