Browse Source

Just move some code to a very specific place and we're done saving any custom fields

Signed-off-by: Suki <[email protected]>
Suki 10 years ago
parent
commit
3738c68294
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Sources/ManageRegistration.php

+ 7 - 0
Sources/ManageRegistration.php

@@ -121,6 +121,13 @@ function AdminRegister()
 		$memberID = registerMember($regOptions);
 		if (!empty($memberID))
 		{
+			// We'll do custom fields after as then we get to use the helper function!
+			if (!empty($_POST['customfield']))
+			{
+				require_once($sourcedir . '/Profile-Modify.php');
+				makeCustomFieldChanges($memberID, 'register');
+			}
+
 			$context['new_member'] = array(
 				'id' => $memberID,
 				'name' => $_POST['user'],