From 181c2445224a5df28d755cbbe75d726356bb914b Mon Sep 17 00:00:00 2001 From: Leandro Radusky Date: Tue, 23 Apr 2024 09:10:31 +0200 Subject: [PATCH] Small fix properly blind production date --- app/views/boxes/inventory.csv.csvbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ]