Skip to content
Snippets Groups Projects
Commit f00824d4 authored by thomasmars's avatar thomasmars
Browse files

Fix not running data_postprocessing two times on newer Moodle versions

Prepare for release 1.14
parent 30b5b651
No related branches found
No related tags found
No related merge requests found
...@@ -372,7 +372,10 @@ class mod_hvp_mod_form extends moodleform_mod { ...@@ -372,7 +372,10 @@ class mod_hvp_mod_form extends moodleform_mod {
* @return object submitted data; NULL if not valid or not submitted or cancelled * @return object submitted data; NULL if not valid or not submitted or cancelled
*/ */
public function get_data() { public function get_data() {
global $CFG;
$data = parent::get_data(); $data = parent::get_data();
// Check if Moodle version is < 3.2
if ($CFG->version < 2016120500) {
if ($data) { if ($data) {
// Convert the grade pass value - we may be using a language which uses commas, // Convert the grade pass value - we may be using a language which uses commas,
// rather than decimal points, in numbers. These need to be converted so that // rather than decimal points, in numbers. These need to be converted so that
...@@ -382,6 +385,7 @@ class mod_hvp_mod_form extends moodleform_mod { ...@@ -382,6 +385,7 @@ class mod_hvp_mod_form extends moodleform_mod {
} }
$this->data_postprocessing($data); $this->data_postprocessing($data);
} }
}
return $data; return $data;
} }
} }
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$plugin->version = 2018112200; $plugin->version = 2018113000;
$plugin->requires = 2013051403; $plugin->requires = 2013051403;
$plugin->cron = 0; $plugin->cron = 0;
$plugin->component = 'mod_hvp'; $plugin->component = 'mod_hvp';
$plugin->maturity = MATURITY_STABLE; $plugin->maturity = MATURITY_STABLE;
$plugin->release = '1.13'; $plugin->release = '1.14';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment