jasonaowen / recurse-community-portfolio

Discover all the things Recursers have built!
https://portfolio.recurse.com/
GNU Affero General Public License v3.0
15 stars 6 forks source link

Fix exception when new project contains errors #79

Closed jasonaowen closed 5 years ago

jasonaowen commented 5 years ago

When rejecting a project for containing one or more validation errors, populate the authors list with DisplayAuthors instead of Users, to fix this error:

[THYMELEAF][http-nio-8080-exec-1] Exception processing template "projects/new": Exception evaluating SpringEL expression: "author.imageUrl" (template: "projects/common" - line 23, col 11)

In general, this should not happen, as the browser should prevent form submission until all the required fields are filled in. However, if it does, we should handle it gracefully!