This is a bug in the Sugar code. You can fix by editing the file modules/Contacts/Contacts.php and editing function create_export_query.
For Sugar 5.0b change this line:
PHP Code:
$query .= ' LEFT JOIN email_addr_bean_rel on contacts.id = email_addr_bean_rel.bean_id and email_addr_bean_rel.bean_module=\'Contacts\' and email_addr_bean_rel.primary_address=1 ';
PHP Code:
$query .= ' LEFT JOIN email_addr_bean_rel on contacts.id = email_addr_bean_rel.bean_id and email_addr_bean_rel.bean_module=\'Contacts\' and email_addr_bean_rel.primary_address=1 and email_addr_bean_rel.deleted=0 ';
Bookmarks