If a library has 'Display in OPAC' and 'OPAC mandatory' selected for an attribute, but a patron with no data in that attribute attempts to edit other information in their account from the OPAC, Koha gives a 500 error and doesn't save the edits. 'OPAC mandatory' should only be available if libraries also have 'Staff interface mandatory' selected to avoid this.