Merge branch 'master' into 'master'

add link to member front page for show view

add link to member front page for show view

See merge request !9
This commit is contained in:
EricTYL 2020-01-02 17:08:28 +08:00
commit 748c99394b
1 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ class Book
when "url"
value = self.url.to_s.blank? ? "" : "<a href='#{self.url}'>#{self.url}</a>"
when "authors"
value = get_authors_show(self)
value = get_member_show(self) rescue "#"
else
value = (self.send(field) rescue "")
end