Browse Source

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
pull/6490/head
Michael Vogel 2 years ago
committed by GitHub
parent
commit
4cbfa4aa71
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Module/Contact.php

+ 1
- 1
src/Module/Contact.php 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;
}


Loading…
Cancel
Save