Fixed ReleaseView when displaying a release with no artist

This commit is contained in:
emeric
2018-03-25 22:53:59 +02:00
parent b03622f677
commit 7eb250fdff
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -97,10 +97,12 @@ Release::refresh()
auto artists = release->getArtists();
if (artists.size() > 1)
{
t->setCondition("if-has-artist", true);
t->bindString("artist-name", Wt::WString::tr("Lms.Explore.various-artists"));
}
else
else if (artists.size() == 1)
{
t->setCondition("if-has-artist", true);
Wt::WAnchor *artistAnchor = LmsApplication::createArtistAnchor(artists.front().id());
Wt::WText *artist = new Wt::WText(artistAnchor);
artist->setText(Wt::WString::fromUTF8(artists.front()->getName(), Wt::PlainText));