Browse Source

fixup! CLDC-4145: Derive is partner for under 16s

check if the was was null rather than current. avoids potential bugs on first assign
CLDC-4145-dont-ask-partner-for-children
Samuel Young 2 days ago
parent
commit
12e82f4c6b
  1. 2
      app/models/lettings_log.rb

2
app/models/lettings_log.rb

@ -408,7 +408,7 @@ class LettingsLog < Log
end
def age_changed_from_below_16(person_index)
public_send("age#{person_index}") && public_send("age#{person_index}_was") < 16
public_send("age#{person_index}_was") && public_send("age#{person_index}_was") < 16
end
def is_shared_housing?

Loading…
Cancel
Save