diff --git a/mod_form.php b/mod_form.php index f9bfc90..e76472d 100644 --- a/mod_form.php +++ b/mod_form.php @@ -271,6 +271,7 @@ public function add_completion_rules() { $completionpostgroup = 'completionpostgroup'.$suffix; $completionpostenabled = 'completionpostenabled'.$suffix; $completionpostel = 'completionpost'.$suffix; + $group = []; $group[] = $mform->createElement('checkbox', $completionpostenabled, '', get_string('completionpost', 'hotquestion')); $group[] = $mform->createElement('text', $completionpostel, '', ['size' => 3]); @@ -281,6 +282,7 @@ public function add_completion_rules() { $completionvotegroup = 'completionvotegroup'.$suffix; $completionvoteenabled = 'completionvoteenabled'.$suffix; $completionvoteel = 'completionvote'.$suffix; + $group = []; $group[] = $mform->createElement('checkbox', $completionvoteenabled, '', get_string('completionvote', 'hotquestion')); $group[] = $mform->createElement('text', $completionvoteel, '', ['size' => 3]); diff --git a/upgrade.txt b/upgrade.txt index 5a6b0ef..38bcad5 100644 --- a/upgrade.txt +++ b/upgrade.txt @@ -9,7 +9,7 @@ This files describes changes in the Hot Question code. 20220821 HotQuestion_911 - Need to see about including grades in the Export tool. 20230120 HotQuestion_995 - The grade table needs more info included in the download. -=== 4.1.8 === 2023100900 +=== 4.1.8 === 2023101000 20230926 HotQuestion_1076 - Need to implement suffix on mod_for.php for Moodle 4.3. Added needed code to the mod_form.php file for both add_completion_rules and for completion_rule_enabled. @@ -17,6 +17,9 @@ This files describes changes in the Hot Question code. with a leading backslash". 20231008 HotQuestion_1092 - Latest codechecker requires convert from long array(), to short array []. +20231010 HotQuestion_1094 - Using v4.1.8 on IONOS moodle311 test site students cannout + vote/unvote. Did find in grades.php line 42 the closing bracket was missing. + Wound up replaceing the two HQ activities and HQ works as expected. === 4.1.7 === 2023052500 Only for M3.11 and above. === 4.1.7+ === diff --git a/version.php b/version.php index 4c950a3..d4d982c 100644 --- a/version.php +++ b/version.php @@ -29,10 +29,10 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023100900; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2023101000; // The current module version (Date: YYYYMMDDXX). $plugin->requires = 2021051700; // Requires Moodle 3.11 version. $plugin->cron = 0; // Period for cron to check this module (secs). $plugin->component = 'mod_hotquestion'; $plugin->maturity = MATURITY_STABLE; -$plugin->release = "4.1.8 (Build: 2023100900)"; // User-friendly version number. +$plugin->release = "4.1.8 (Build: 2023101000)"; // User-friendly version number. $plugin->supported = [311, 403];