diff --git a/CHANGES.md b/CHANGES.md index 2221e1a..7cdbe85 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,7 @@ -Changes in version 2017-07-03 (2017073001) +Changes in version 2017-07-04 (2017070401) +- Fix: Problems on backup/restore + +Changes in version 2017-07-03 (2017070301) - New: Auto check for common problem (mod_form.php and view.php for teachers) Changes in version 2017-06-30 (2017063002) diff --git a/backup/moodle2/backup_game_stepslib.php b/backup/moodle2/backup_game_stepslib.php index 7b7d67b..d3079da 100644 --- a/backup/moodle2/backup_game_stepslib.php +++ b/backup/moodle2/backup_game_stepslib.php @@ -48,26 +48,26 @@ class backup_game_activity_structure_step extends backup_activity_structure_step // To know if we are including userinfo. $userinfo = $this->get_setting_value('userinfo'); - // Define each element separated. + // Define each element separated (exclude fields: course). $game = new backup_nested_element('game', array('id'), array( 'name', 'sourcemodule', 'timeopen', 'timeclose', 'quizid', 'glossaryid', 'glossarycategoryid', 'questioncategoryid', 'bookid', 'gamekind', 'param1', 'param2', 'param3', - 'param4', 'param5', 'param6', 'param7', 'param8', 'param9', + 'param4', 'param5', 'param6', 'param7', 'param8', 'param9', 'param10', 'shuffle', 'timemodified', 'toptext', 'bottomtext', 'grademethod', 'grade', 'decimalpoints', 'popup', 'review', 'attempts', 'glossaryid2', 'glossarycategoryid2', - 'language', 'subcategories', 'maxattempts' + 'language', 'subcategories', 'maxattempts', 'userlanguage', 'disablesummarize', 'glossaryonlyapproved' )); $exporthtmls = new backup_nested_element('game_export_htmls'); $exporthtml = new backup_nested_element('game_export_html', array('id'), array( - 'filename', 'title', 'checkbutton', 'printbutton', 'inputsize', 'maxpicturewidth', 'maxpictureheight')); + 'filename', 'title', 'checkbutton', 'printbutton', 'inputsize', 'maxpicturewidth', 'maxpictureheight', 'type')); $exportjavames = new backup_nested_element('game_export_javames'); $exportjavame = new backup_nested_element('game_export_javame', array('id'), array( 'filename', 'icon', 'createdby', 'vendor', 'name', 'description', 'version', - 'maxpicturewidth', 'maxpictureheight')); + 'maxpicturewidth', 'maxpictureheight', 'type')); $grades = new backup_nested_element('game_grades'); $grade = new backup_nested_element('game_grade', array('id'), array( diff --git a/version.php b/version.php index 2801390..6997883 100644 --- a/version.php +++ b/version.php @@ -35,10 +35,10 @@ if (!isset( $plugin)) { } $plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics). -$plugin->version = 2017070302; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2017070401; // 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 = '2017-07-03'; +$plugin->release = '2017-07-04'; $plugin->maturity = MATURITY_STABLE; if ($useplugin != 2) {