[phpwscontacts] [ phpwscontacts-Bugs-1511568 ] CSV EXPORT
Brought to you by:
rizzo,
wendall911
From: SourceForge.net <no...@so...> - 2006-06-23 21:03:31
|
Bugs item #1511568, was opened at 2006-06-23 17:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=570207&aid=1511568&group_id=83662 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: chucknut7 (chucknut7) Assigned to: Nobody/Anonymous (nobody) Summary: CSV EXPORT Initial Comment: 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 .= '"",'; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=570207&aid=1511568&group_id=83662 |