Fix: enable correct detection of student surveys types by rejecting any

headers ending with '-1' (the variants of standard questions)
rpp-main
rebuilt 3 years ago
parent 02a2c6cd97
commit 5f66d3d99a

@ -128,6 +128,7 @@ class SurveyItemValues
def survey_type
survey_item_ids = headers
.filter(&:present?)
.reject { |header| header.end_with?('-1') }
.filter { |header| header.start_with?('t-', 's-') }
SurveyItem.survey_type(survey_item_ids:)

Loading…
Cancel
Save