cardiacsociety / web-services

MappCPD API and other services
0 stars 1 forks source link

Blank secondary email gives duplication error #62

Closed mikedonnici closed 5 years ago

mikedonnici commented 5 years ago

When an online application is submitted, and the secondary_email field is omitted, the database responds with a no duplicate allowed error.

This is expected behaviour as the secondary email must also be unique. However, as the second email is optional, omitting it should not result in this error.

mikedonnici commented 5 years ago

Will remove secondary email as it is a bit OTT and this is an unnecessary paint to sort.