Move ProfileField::selectByContactId() and ProfileField::selectByUserId()
This commit is contained in:
@@ -213,9 +213,9 @@ class Profile extends BaseProfile
|
||||
$contact_id = $view_as_contact_id ?: $remote_contact_id ?: 0;
|
||||
|
||||
if ($is_owner && $contact_id === 0) {
|
||||
$profile_fields = DI::profileField()->selectByUserId($profile['uid']);
|
||||
$profile_fields = DI::profileFieldNew()->selectByUserId($profile['uid']);
|
||||
} else {
|
||||
$profile_fields = DI::profileField()->selectByContactId($contact_id, $profile['uid']);
|
||||
$profile_fields = DI::profileFieldNew()->selectByContactId($contact_id, $profile['uid']);
|
||||
}
|
||||
|
||||
foreach ($profile_fields as $profile_field) {
|
||||
|
||||
@@ -100,7 +100,7 @@ class Index extends BaseSettings
|
||||
$homepage = 'http://' . $homepage;
|
||||
}
|
||||
|
||||
$profileFields = DI::profileField()->selectByUserId(local_user());
|
||||
$profileFields = DI::profileFieldNew()->selectByUserId(local_user());
|
||||
|
||||
$profileFields = DI::profileField()->updateCollectionFromForm(
|
||||
local_user(),
|
||||
@@ -159,7 +159,7 @@ class Index extends BaseSettings
|
||||
|
||||
$custom_fields = [];
|
||||
|
||||
$profileFields = DI::profileField()->selectByUserId(local_user());
|
||||
$profileFields = DI::profileFieldNew()->selectByUserId(local_user());
|
||||
foreach ($profileFields as $profileField) {
|
||||
/** @var ProfileField $profileField */
|
||||
$defaultPermissions = $profileField->permissionSet->withAllowedContacts(
|
||||
|
||||
Reference in New Issue
Block a user