From 8d0dd859642f140673fb85985ab5751a0cb213e6 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 30 Oct 2019 21:42:47 +0800 Subject: [PATCH] Update journal_papers_controller.rb fix error --- app/controllers/admin/journal_papers_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/admin/journal_papers_controller.rb b/app/controllers/admin/journal_papers_controller.rb index 548ff40..ab78194 100644 --- a/app/controllers/admin/journal_papers_controller.rb +++ b/app/controllers/admin/journal_papers_controller.rb @@ -96,8 +96,7 @@ class Admin::JournalPapersController < OrbitMemberController end def edit - @member = MemberProfile.find(@journal_paper.member_profile_id) - puts [@journal_paper.inspect,'help',@member.inspect] + @member = Array(MemberProfile.find(@journal_paper.member_profile_id)) if params[:desktop] render :layout => false end