Skip to content

Commit b1493bd

Browse files
Merge pull request #477 from ajit3190/gbv_export_alleged
more than3 issue fixed
2 parents 7ce8799 + c670a03 commit b1493bd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/models/exporters/incident_recorder_exporter.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ def number_primary_perpetrators_props
381381
if from_ir.present?
382382
calculated.present? && calculated > 1 ? calculated : from_ir
383383
else
384-
calculated
384+
default_text = I18n.t('exports.incident_recorder_xls.number_primary_perpetrators.more_than_three')
385+
calculated > 3 ? default_text : calculated
385386
end
386387
end
387388
end

config/locales/incident_recorder/en.yml

+3
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,6 @@ en:
7676
protection_referral: "CHILD PROTECTION SERVICES / EDUCATION SERVICES"
7777
consent: "CONSENT GIVEN"
7878
agency_code: "REPORTING AGENCY CODE"
79+
number_primary_perpetrators:
80+
more_than_three: "More than 3"
81+

0 commit comments

Comments
 (0)