Browse Source

CLDC-4105: Ensure hhmemb is not >8 for validation (#3184)

otherwise the send to ecstatn will fail

this can happen whilst running validation checks
pull/3169/head^2
Samuel Young 5 days ago committed by GitHub
parent
commit
cc13fc287c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/models/validations/soft_validations.rb

2
app/models/validations/soft_validations.rb

@ -329,6 +329,8 @@ private
end
def at_least_one_person_working_situation_is_illness?
return if hhmemb.present? && hhmemb > 8
person_count = hhmemb || 8
(1..person_count).any? { |n| public_send("ecstat#{n}") == 8 }

Loading…
Cancel
Save