mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 21:56:55 -04:00
Merge pull request #325 from Skud/csv
Fixed error with blank planting/plant_before dates in CSV files
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user