From 556840d567d11bb715e2ddcdcf0b936f0e8317dc Mon Sep 17 00:00:00 2001 From: chiu Date: Sat, 2 Nov 2019 15:18:58 +0800 Subject: [PATCH] Update journal_papers_controller.rb --- app/controllers/admin/journal_papers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/journal_papers_controller.rb b/app/controllers/admin/journal_papers_controller.rb index 546accf..95a9566 100644 --- a/app/controllers/admin/journal_papers_controller.rb +++ b/app/controllers/admin/journal_papers_controller.rb @@ -65,7 +65,7 @@ class Admin::JournalPapersController < OrbitMemberController end def new - @member = MemberProfile.find_by(:uid=>params['uid']) rescue nil + @member = Array(MemberProfile.find_by(:uid=>params['uid']) rescue nil) @journal_paper = JournalPaper.new if params[:desktop]