From 0cc550f9206a92a9f6e85bade965d37041404b22 Mon Sep 17 00:00:00 2001 From: Jeroen Dalsem Date: Fri, 28 Jan 2022 09:13:39 +0100 Subject: [PATCH] fixed: custom_profile_fields should be saved on register fixes #127 --- classes/ColdTrick/ProfileManager/Users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/ColdTrick/ProfileManager/Users.php b/classes/ColdTrick/ProfileManager/Users.php index 3959de0..bf16c56 100644 --- a/classes/ColdTrick/ProfileManager/Users.php +++ b/classes/ColdTrick/ProfileManager/Users.php @@ -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) {