mirror of
https://github.com/friendica/friendica
synced 2025-04-26 02:30:11 +00:00
Move ProfileFieldRepository::migrateFromLegacyProfile() & delete old repository
This commit is contained in:
parent
f403851946
commit
838cdac5d1
9 changed files with 93 additions and 166 deletions
|
@ -107,7 +107,7 @@ class Index extends BaseSettings
|
|||
$_REQUEST['profile_field_order']
|
||||
);
|
||||
|
||||
DI::profileFieldNew()->saveCollectionForUser(local_user(), $profileFieldsNew);
|
||||
DI::profileField()->saveCollectionForUser(local_user(), $profileFieldsNew);
|
||||
|
||||
$result = Profile::update(
|
||||
[
|
||||
|
@ -157,7 +157,7 @@ class Index extends BaseSettings
|
|||
|
||||
$custom_fields = [];
|
||||
|
||||
$profileFields = DI::profileFieldNew()->selectByUserId(local_user());
|
||||
$profileFields = DI::profileField()->selectByUserId(local_user());
|
||||
foreach ($profileFields as $profileField) {
|
||||
/** @var ProfileField $profileField */
|
||||
$defaultPermissions = $profileField->permissionSet->withAllowedContacts(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue