This pull request fixes a bug in the apply_canvass_result function. The problem was that the phone was only being sent when the contact_type_id was either 1 (phone) or 37 (SMS text) even though it was required for other contact types. Now it raises an error if the contact type requires phone. But, if the phone is provided, it sends it regardless of the contact type id.
This pull request fixes a bug in the
apply_canvass_result
function. The problem was that the phone was only being sent when the contact_type_id was either 1 (phone) or 37 (SMS text) even though it was required for other contact types. Now it raises an error if the contact type requires phone. But, if the phone is provided, it sends it regardless of the contact type id.