Author Topic: too long string for data field adress?  (Read 4256 times)

4nd3rs

  • Newbie
  • *
  • Posts: 17
    • View Profile
too long string for data field adress?
« on: July 07, 2009, 09:19:37 pm »
I imported data sets. The adress field contains long strings like "c/o Venue for this and that and that and this Inc. at Example Street 40". All is shown correctly in preview or edit mode.
I did a export. Data of companies with this kind of long strings are exporte in two to four lines, which makes the csv file unusable.

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: too long string for data field adress?
« Reply #1 on: July 14, 2009, 11:40:49 am »
hi,

try putting this line before lines 1576 and 1594 of "application/controllers/ContactController.class.php"
Code: [Select]
$str = str_replace(array(chr(13).chr(10), chr(13), chr(10)), ' ', $str);