Skip to content

Commit

Permalink
Refactorig code.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-milette committed Oct 14, 2024
1 parent 06add40 commit 735c271
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
- Added option to automatically add instance to new courses.
### Updated
- Fixed support for plain text tag called {$a->userfullname}.
- Fixed compatibility issue with Moodle versions prior to v3.11.
- Fixed deprecation notice running on PHP 8.3.

## [2.2.1] - 2024-04-28
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ Michael Milette - Author and Lead Developer

Big thank you to the following contributors. (Please let me know if I forgot to include you in the list):

* Chandra Kishor (developerck) - Fixed compatibility issue with Moodle versions prior to v3.11.
* Phillip Fickl (phillipfickl) - Add instance to new coures by default. (2023)
* MSVermet - Case insensitive comparison between invitation email and user email. (2023)
* [Jerome Mouneyrac](http://www.moodleitandme.com) for his work on the original [invitation enrollment plug-in](https://github.com/mouneyrac/moodle-enrol_invitation) in which this one is based upon.
Expand Down
7 changes: 5 additions & 2 deletions invitation_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,11 @@ public function definition() {
} else {
$userfields = get_extra_user_fields($context);
}
// this line is causing issue for system lower than version 311
// $userfields = \core_user\fields::get_identity_fields($context, false);

if ($CFG->branch >= 311) {
$userfields = \core_user\fields::get_identity_fields($context, false);
}

$options = [
'ajax' => 'enrol_manual/form-potential-user-selector',
'multiple' => true,
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024042800;
$plugin->version = 2024042801;
$plugin->requires = 2013111800; // Moodle 3.9.
$plugin->release = '2.2.1';
$plugin->component = "enrol_invitation";
Expand Down

0 comments on commit 735c271

Please sign in to comment.