create contact: subtype retained after removal
- create a new contact via the subtype menu (i.e. Contact > New Individual > New Student)
- fill in the first/last name. deselect the subtype (remove Student)
- save the form
Expected result: a contact with no subtype is created. Actual result: the student subtype is retained.
I suspect what's happening is that on form submission the subtype field is getting reset via the URL param.
But it poses a question, as I think there are two ways we could approach this:
- fix the form per the above. on submission, ensure we process the form field value and don't allow the URL param to reset it.
- freeze the subtype field. one could argue that if I'm choosing to create a New Student I should be locked into that path. we could check to see if a URL param for subtype was passed and then freeze that field. the downside is that it would prevent you from setting multiple subtypes for the contact.
Would like to get some opinions/thoughts from the community before I work on a patch.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information