|
|
@ -340,10 +340,10 @@ class BulkUpload::Lettings::Year2022::RowParser |
|
|
|
|
|
|
|
|
|
|
|
return true if blank_row? |
|
|
|
return true if blank_row? |
|
|
|
|
|
|
|
|
|
|
|
super |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.valid? |
|
|
|
log.valid? |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
super |
|
|
|
|
|
|
|
|
|
|
|
log.errors.each do |error| |
|
|
|
log.errors.each do |error| |
|
|
|
fields = field_mapping_for_errors[error.attribute] || [] |
|
|
|
fields = field_mapping_for_errors[error.attribute] || [] |
|
|
|
|
|
|
|
|
|
|
@ -650,7 +650,7 @@ private |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def questions |
|
|
|
def questions |
|
|
|
log.form.subsections.flat_map { |ss| ss.applicable_questions(log) } |
|
|
|
@questions ||= log.form.subsections.flat_map { |ss| ss.applicable_questions(log) } |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def validate_nulls |
|
|
|
def validate_nulls |
|
|
|