Browse Source

Allow user to change the age of a person if they're not actually under 16 without being blocked

pull/2801/head
Manny Dinssa 7 months ago
parent
commit
e08dc01cd6
  1. 2
      app/models/derived_variables/sales_log_variables.rb

2
app/models/derived_variables/sales_log_variables.rb

@ -160,6 +160,8 @@ private
(start_index..6).each do |idx|
if age_under_16?(idx)
self["ecstat#{idx}"] = 9
elsif self["ecstat#{idx}"] == 9
self["ecstat#{idx}"] = nil
end
end
end

Loading…
Cancel
Save