Details
Description
I was replicating this with
1) a contact with permission to another contact via ACL logged in
2) going to an event page with 'cid=0' (on behalf of someone else)
3) clicking 'here' & selecting the person
- I think this only happened with 1 or more 'post' profiles configured
This fix appears to be working (& is pretty easy to read)
https://github.com/fuzionnz/civicrm-core/commit/eb5b12db1aec79371e6fd81178361198bec5c11b