Update journal_papers_controller.rb

fix error
This commit is contained in:
chiu 2019-10-30 21:42:47 +08:00
parent 9b622b132a
commit 8d0dd85964
1 changed files with 1 additions and 2 deletions

View File

@ -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