Merge pull request #6484 from rabuzarus/20190121_-_fix_Contact_module_profile_searching
bugfix - contact module couldn't update a contact because it couldn't locate the selected profile
This commit is contained in:
commit
4cbfa4aa71
|
@ -198,7 +198,7 @@ class Contact extends BaseModule
|
|||
|
||||
$profile_id = intval(defaults($_POST, 'profile-assign', 0));
|
||||
if ($profile_id) {
|
||||
if (!DBA::exists('profile', ['id' => $profile_id, 'uid' => local_user(), 'deleted' => false])) {
|
||||
if (!DBA::exists('profile', ['id' => $profile_id, 'uid' => local_user()])) {
|
||||
notice(L10n::t('Could not locate selected profile.') . EOL);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user