Closed michalbcz closed 11 years ago
I am not sure how to solve it. Maybe we should create author field required when admin is changing state from NEW to APPROVED_FOR_VOTING... otherwise it can happen by mistake that quote appear on the main page with an empty "Author:"
Why just don't use a conditional statement? Something like
@if(StringUtils.isNotBlank(quote.author)) {
<span>Author:...
}
For now there is shown "Autor: neznámý" when the author field is null or blank. I think that's expected behavior.
I think it's ok right now. We will solve it by making Author field required (see #58)
How to reproduce?
There shouldn't be label at all or something like " - " or "unknown" instead just an empty space.