SF Bug #3513210 - Export to VCARD only exports the last entry in the list

This commit is contained in:
Deon George 2012-09-05 21:57:17 +10:00
parent f28d535948
commit 55fa21af26

View File

@ -578,6 +578,7 @@ class ExportVCARD extends Export {
*/
function export() {
$server = $this->getServer();
$output = '';
# Sift through the entries.
foreach ($this->results as $base => $results) {
@ -591,10 +592,11 @@ class ExportVCARD extends Export {
$addr .= $dndetails[$attr];
unset($dndetails[$attr]);
}
$addr .= ';';
}
$output = sprintf('BEGIN:VCARD%s',$this->br);
$output .= sprintf('BEGIN:VCARD%s',$this->br);
# Loop for the attributes
foreach ($dndetails as $key => $attr) {