]> git.koha-community.org Git - koha.git/commit
Bug 6727 - Change on exporting and importing csv to deal with spurious CR/LF
authorSalvador Zaragoza Rubio <salvazm@masmedios.com>
Fri, 19 Aug 2011 10:33:05 +0000 (12:33 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 25 Aug 2011 20:41:01 +0000 (08:41 +1200)
commit6b69260fbd75f80b1831341b9bb5b18b54fef56b
tree36e125e6239b73bb621b8e6a8986276a654d2df0
parent97005758bb647c49462c9f203f48e94fab0bb308
Bug 6727 - Change on exporting and importing csv to deal with spurious CR/LF

Function _export_table_csv modified to remove CR/LF in the data
from the database to built a correct csv file.

Function _import_table_csv modified to deal with CR/LF in the data
field. When a line is found with an unproper end (a data field has not
end quote), it's concatenated to a temporary buffer until the next
line ends ok and then it's proccessed.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/ImportExportFramework.pm