diff --git a/app/views/boxes/inventory.csv.csvbuilder b/app/views/boxes/inventory.csv.csvbuilder index 41fe65527..c67dd67f2 100644 --- a/app/views/boxes/inventory.csv.csvbuilder +++ b/app/views/boxes/inventory.csv.csvbuilder @@ -20,7 +20,7 @@ csv << [ sample.virus_lineage, sample.replicate, sample.concentration, - sample.blinded_attribute(:date_produced) { sample.date_produced.to_date }, + params[:unblind] ? sample.date_produced.to_date : sample.blinded_attribute(:date_produced) { sample.date_produced.to_date }, sample.inactivation_method, sample.media, ]