mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-05 10:18:33 +08:00
Merge commit '114b895b6d
' into merge_develop
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com> # Conflicts: # public/legacy/include/CleanCSV.php # public/legacy/suitecrm_version.php # public/legacy/tests/unit/phpunit/includes/CleanCSVTest.php
This commit is contained in:
commit
33fc2ee307
182 changed files with 1220 additions and 3898 deletions
|
@ -85,7 +85,7 @@ $contactForm = new ContactFormBase();
|
|||
$GLOBALS['check_notify'] = false;
|
||||
|
||||
|
||||
$query = 'select id, first_name, last_name, title from contacts where deleted=0 ';
|
||||
$query = 'select contacts.id, first_name, last_name, title, accounts.name, primary_address_city from contacts LEFT JOIN accounts_contacts ON contacts.id=accounts_contacts.contact_id and accounts_contacts.deleted = 0 LEFT JOIN accounts ON accounts_contacts.account_id=accounts.id AND accounts_contacts.deleted=0 AND accounts.deleted=0 where contacts.deleted=0 ';
|
||||
$duplicates = $_POST['duplicate'];
|
||||
$count = count($duplicates);
|
||||
$db = DBManagerFactory::getInstance();
|
||||
|
@ -98,7 +98,7 @@ if ($count > 0) {
|
|||
}
|
||||
$first = false;
|
||||
$duplicateIdQuoted = $db->quote($duplicate_id);
|
||||
$query .= "id='$duplicateIdQuoted' ";
|
||||
$query .= "contacts.id='$duplicateIdQuoted' ";
|
||||
}
|
||||
$query .= ')';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue