Update book.rb
This commit is contained in:
parent
9cc10eaa64
commit
40f9361ea4
|
@ -118,7 +118,7 @@ class Book
|
||||||
when "author_type"
|
when "author_type"
|
||||||
pd_data << {"data_title" => (p.book_author_types.collect{|bat| bat.title}.join(", ") rescue "")}
|
pd_data << {"data_title" => (p.book_author_types.collect{|bat| bat.title}.join(", ") rescue "")}
|
||||||
when "language"
|
when "language"
|
||||||
pd_data << {"data_title" => (I18n.t("personal_book.#{p.language}") if !p.language.nil? rescue "")}
|
pd_data << {"data_title" => (I18n.t("#{p.language}") if !p.language.nil? rescue "")}
|
||||||
else
|
else
|
||||||
pd_data << { "data_title" => p.send(t) }
|
pd_data << { "data_title" => p.send(t) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue