- Create a concept, give it datatype=Coded, and give it answers. Save it.
- Edit that concept, change its datatype to N/A. Save it.
- Edit that concept again, and choose Coded again from the datatype dropdown: the original answers are still there. You can see this in the database as well.
In particular this is breaking concept synching for PIH, because there's now a cycle where a concept that's now N/A "contains" a question, which contains the first N/A concept. (The database thinks it contains it anyway.)
I propose that if you change a concept's datatype from Coded to anything else, then the service and/or DAO should forcibly delete its answers.
(Same should happen with sets that are re-saved as isSet=false, but I haven't checked whether there's a bug there or not.)