From e99fef9404a46673187c7c47a4794c7280acdaf7 Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Mon, 4 Mar 2013 11:45:39 +0800 Subject: [PATCH] fixed paper title and journal title bug --- .../personal_journal/desktop/journal_pages/_form.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/_form.html.erb b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/_form.html.erb index 4fd93991..161353fa 100644 --- a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/_form.html.erb +++ b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/_form.html.erb @@ -33,7 +33,7 @@ class: "s_grid_6 s_grid", size: "20x2", placeholder: t("personal_journal.paper_title"), - value: (@writing_journal.paper_title_translations[locale] rescue nil) %> + value: (@writing_journal.paper_title_translations[locale.to_s] rescue nil) %> <% end %>
  • @@ -43,7 +43,7 @@ placeholder: t("personal_journal.journal_title"), class: "s_grid_6 s_grid", "autocomplete-list" => "journal_title_autocomplete_list", - value: (@writing_journal.journal_title_translations[locale] rescue nil) %> + value: (@writing_journal.journal_title_translations[locale.to_s] rescue nil) %> <% end %>
  • @@ -94,7 +94,7 @@ size: "20x2", placeholder: t("personal_journal.authors"), "autocomplete-list" => "coauthor_autocomplete_list", - value: (@writing_journal.authors_translations[locale] rescue nil) %> + value: (@writing_journal.authors_translations[locale.to_s] rescue nil) %> <% end %>