diff --git a/src/Core/UserImport.php b/src/Core/UserImport.php index ffe680dc4c..f09db98686 100644 --- a/src/Core/UserImport.php +++ b/src/Core/UserImport.php @@ -263,7 +263,7 @@ class UserImport $profile['id'] = DBA::lastInsertId(); } - DI::profileField()->migrateFromProfile($profile); + DI::profileField()->migrateFromLegacyProfile($profile); } ///@TODO Replace with permissionset import diff --git a/src/Repository/ProfileField.php b/src/Repository/ProfileField.php index 8070aea4a2..b1b16dcf1f 100644 --- a/src/Repository/ProfileField.php +++ b/src/Repository/ProfileField.php @@ -231,7 +231,7 @@ class ProfileField extends BaseRepository * @param array $profile Profile table row * @throws \Exception */ - public function migrateFromProfile(array $profile) + public function migrateFromLegacyProfile(array $profile) { // Already processed, aborting if ($profile['is-default'] === null) { diff --git a/update.php b/update.php index d73306881f..f86fea8dfd 100644 --- a/update.php +++ b/update.php @@ -437,7 +437,7 @@ function update_1332() $profiles = DBA::select('profile', [], $condition); while ($profile = DBA::fetch($profiles)) { - DI::profileField()->migrateFromProfile($profile); + DI::profileField()->migrateFromLegacyProfile($profile); } DBA::close($profiles);