Update personal_conferences_controller.rb

This commit is contained in:
chiu 2019-08-14 14:19:50 +08:00
parent e3c84bf11a
commit 8f03e0aef1
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class PersonalConferencesController < ApplicationController
t << {"value" => "<a href='#{OrbitHelper.url_to_show(writing_conference.to_param)}'>#{writing_conference.create_link}</a>"}
end
when "paper_levels"
t << {"value" => "(#{writing_conference.conference_paper_levels.collect{|x| x.title}.join(', ')})"}
t << {"value" => ( !writing_conference.conference_paper_levels.blank? ? "(#{writing_conference.conference_paper_levels.collect{|x| x.title}.join(', ')})" : nil)
when "paper_types"
t << {"value" => ( !writing_conference.conference_paper_types.blank? ? "(#{writing_conference.conference_paper_types.collect{|x| x.title}.join(', ')})" : nil)}
when "publication_date"