Merge pull request #325 from Skud/csv

Fixed error with blank planting/plant_before dates in CSV files
This commit is contained in:
Skud
2013-10-01 19:21:01 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ csv.headers :id,
csv.cells :quantity, :planted_from, :sunniness
csv.cell :date_planted, p.planted_at.to_s(:db)
csv.cell :date_planted, p.planted_at ? p.planted_at.to_s(:db) : ''
csv.cell :description

View File

@@ -29,7 +29,7 @@ csv.headers :id,
csv.cell :quantity
csv.cell :plant_before, s.plant_before.to_s(:db)
csv.cell :plant_before, s.plant_before ? s.plant_before.to_s(:db) : ''
csv.cell :tradable_to
csv.cell :from_location, s.owner.location