rwarbelow / the_swot_bot

20 stars 10 forks source link

SMS bug looking up phone number when user has multiple user types #254

Open ejallday opened 11 years ago

ejallday commented 11 years ago

The following code needs to be re-written to ensure that a guardian object is always returned even if a cell phone number belongs to both a teacher and a guardian.

if Guardian.valid_number?(phone_number) guardian = PhoneNumber.find_by_number(phone_number).phone_numberable check_student_guardian_relationship(guardian, ccsd_id)

ejallday commented 5 years ago

I think this is still a bug.