Menu

#26 CSV EXPORT

open
nobody
None
5
2006-06-23
2006-06-23
chucknut7
No

Hello,
Not sure if this was addressed in a previous bug... did
not read anyway or may have missed it.
I am on 0.9.4 and I tried to export a CSV for OUTLOOK
import. I opened it up in Excel and noticed that the
two contacts in the database ended up on the same line
instead of different rows.
I took a closer look at the CSV in text editor and the
starting with the "birthday" field and ending with the
"anniversary" field, the "","","" pattern was brok and
only single quotes were showing.
------
Solution...

I opened the Class/Contact.php file and found the lines
1726, 1732, and 1738 (or there abouts)... and added an
extra quote mark in the "ELSE" line.

Was this already done or did I help contribute to a bug
fix? If not, then Pete and now Repeat.

Hopefully this will help someone and if a true bug can
be added to the newer version.
--------

if (!empty($this->_str_birthday)) {
$birthday = new Date($this->_str_birthday);
$content .= '"' .
$birthday->format('%Y/%m/%d') . '",';
} else {
$content .= '"",';
}
if (!empty($this->_str_deathday)) {
$deathday = new Date($this->_str_deathday);
$content .= '"' .
$deathday->format('%Y/%m/%d') . '",';
} else {
$content .= '"",';
}
if (!empty($this->_str_anniversary)) {
$anniversary = new
Date($this->_str_anniversary);
$content .= '"' .
$anniversary->format('%Y/%m/%d') . '",';
} else {
$content .= '"",';

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.