Skip to content

Commit

Permalink
fixed: custom_profile_fields should be saved on register
Browse files Browse the repository at this point in the history
fixes #127
  • Loading branch information
jdalsem committed Jan 28, 2022
1 parent 05a7059 commit 0cc550f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/ColdTrick/ProfileManager/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static function createUserByRegister(\Elgg\Event $event) {
$categorized_fields = profile_manager_get_categorized_fields(null, true, true);
$configured_fields = $categorized_fields['fields'];

elgg_call(ELGG_IGNORE_ACCESS, function() use ($user, $configured_fields) {
elgg_call(ELGG_IGNORE_ACCESS, function() use ($user, $configured_fields, $custom_profile_fields) {
$user_default_access = get_default_access($user);

foreach ($custom_profile_fields as $shortname => $value) {
Expand Down

0 comments on commit 0cc550f

Please sign in to comment.