Fix undocumented bug where adding a view column without selecting anything would add a person_field filter with the configuration of a person_note.
To reproduce:
Create a view
Add a few people to the view
Click Add column
Click the Add column button in the AddViewColumnPane
Expected results: Adds the selected view column type
Actual results: Adds a column named Person notes, clears people from the view due to the backend not knowing what to do with the odd column configuration.
In addition to fixing the above bug, this now also fixes a bug where switching between survey response and survey submission would result in weird behavior.
Fix undocumented bug where adding a view column without selecting anything would add a person_field filter with the configuration of a person_note.
To reproduce:
Expected results: Adds the selected view column type Actual results: Adds a column named Person notes, clears people from the view due to the backend not knowing what to do with the odd column configuration.