commit
3518ce2525
|
@ -178,6 +178,7 @@ class SeminarsController < ApplicationController
|
|||
update_params = seminar_signup_contribute_params.merge('seminar_submission_values'=>params['seminar_submission_values'])
|
||||
flag = true
|
||||
update_params.permit!
|
||||
if !update_params['seminar_submission_values'].nil?
|
||||
if update_params['seminar_submission_values']['0']['value'].class==String
|
||||
value = update_params['seminar_submission_values']['0']['value']
|
||||
if !value.to_s.blank?
|
||||
|
@ -190,6 +191,9 @@ class SeminarsController < ApplicationController
|
|||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
flag = false
|
||||
end
|
||||
if flag
|
||||
update_params['seminar_submission_values']['0']['value']['en'] = ' '
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
wb = xlsx_package.workbook
|
||||
|
||||
wb.add_worksheet(name: @seminar.title) do |sheet|
|
||||
wb.add_worksheet(name: (@seminar.title.to_s[0..27]+'...')) do |sheet|
|
||||
|
||||
row = [t('seminar_signup.signup_time')]
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
</div>
|
||||
<% elsif field_set.field_name== 'status' %>
|
||||
<%= t("seminar.registration_status_#{seminar_signup.status}") if !seminar_signup.status.blank? %>
|
||||
<% else %>
|
||||
<% elsif field_set.field_name != 'recaptcha' %>
|
||||
<%= seminar_signup.send("#{field_set.field_name}") %>
|
||||
<% end %>
|
||||
</td>
|
||||
|
|
Loading…
Reference in New Issue