Revert "Merge branch 'master' into 'master'"

This reverts merge request !2
This commit is contained in:
wmcheng 2019-08-16 12:58:45 +08:00
parent 91f2c9c9fd
commit ed8a0832d6
1 changed files with 1 additions and 2 deletions

View File

@ -164,8 +164,7 @@ class Book
end
value = value.join(" / ")
when "language"
value = I18n.t(self.language) if !self.language.nil? rescue ""
# value = I18n.t("personal_book.#{self.language}") if !self.language.nil? rescue ""
value = I18n.t("personal_book.#{self.language}") if !self.language.nil? rescue ""
when "publish_date", "publication_date"
value = self.send(field).to_date.strftime("%Y-%m-%d") rescue nil
when "file"