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:
commit
748c99394b
|
@ -180,7 +180,7 @@ class Book
|
||||||
when "url"
|
when "url"
|
||||||
value = self.url.to_s.blank? ? "" : "<a href='#{self.url}'>#{self.url}</a>"
|
value = self.url.to_s.blank? ? "" : "<a href='#{self.url}'>#{self.url}</a>"
|
||||||
when "authors"
|
when "authors"
|
||||||
value = get_authors_show(self)
|
value = get_member_show(self) rescue "#"
|
||||||
else
|
else
|
||||||
value = (self.send(field) rescue "")
|
value = (self.send(field) rescue "")
|
||||||
end
|
end
|
||||||
|
@ -203,4 +203,4 @@ class Book
|
||||||
self.url = 'http://' + self.url
|
self.url = 'http://' + self.url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue