From 8e25b284df145d5d1d266b1e80ad1795216845bd Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 26 Nov 2014 16:21:35 +0800 Subject: [PATCH] fix for translations --- app/controllers/desktop/journal_papers_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/desktop/journal_papers_controller.rb b/app/controllers/desktop/journal_papers_controller.rb index 59039ce..8cc5aaa 100644 --- a/app/controllers/desktop/journal_papers_controller.rb +++ b/app/controllers/desktop/journal_papers_controller.rb @@ -10,7 +10,10 @@ class Desktop::JournalPapersController < DesktopAdminController { "title" => "Add/Edit", "layout" => "form", - "new_file_attributes" => "journal_paper[journal_paper_files_attributes][{number}][journal_file]", + "new_file_attributes" => { + "file" => "journal_paper[journal_paper_files_attributes][{number}][journal_file]", + "title" => "journal_paper[journal_paper_files_attributes][{number}][title_translations][en]" + } "new_path" => "/admin/members/#{user.member_profile.to_param}/journal_papers/new" } ]