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:
Michael Vogel 2019-01-21 21:46:48 +01:00 committed by GitHub
commit 4cbfa4aa71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}