Skip to content

Commit

Permalink
fixed a display issue with custom user profile fields that were not set
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhunt committed Dec 22, 2022
1 parent 16e491f commit e145a2a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Change List
=========
Version 1.4.18(Build 2022122200)
- will return an empty string for custom user profile fields that exist but are empty (previously returned the unparsed variable name)

Version 1.4.17(Build 2022121900)
- Added non JQuery UI versions of tabs and accordians. Thanks @alexmorrisnz
- Fixed issue with custom course variables not being picked up if no courseid specified.
Expand Down
2 changes: 1 addition & 1 deletion filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ function filter_generico_callback(array $link) {
}

//if we have a propname and a propvalue, do the replace
if (!empty($userprop) && !empty($propvalue)) {
if (!empty($userprop) && !is_null($propvalue)) {
//echo "userprop:" . $userprop . '<br/>propvalue:' . $propvalue;
$genericotemplate = str_replace('@@USER:' . $userprop_allcase . '@@', $propvalue, $genericotemplate);
$dataset_vars = str_replace('@@USER:' . $userprop_allcase . '@@', $propvalue, $dataset_vars);
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

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

$plugin->version = 2022121900; // The current plugin version (Date: YYYYMMDDXX)
$plugin->version = 2022122200; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011070100; // Requires this Moodle version
$plugin->component = 'filter_generico'; // Full name of the plugin (used for diagnostics)
$plugin->maturity = MATURITY_STABLE;
$plugin->release = 'Version 1.4.17(Build 2022121900)';
$plugin->release = 'Version 1.4.18(Build 2022122200)';

0 comments on commit e145a2a

Please sign in to comment.