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

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