forked from spen/seminar
Fix bug.
This commit is contained in:
parent
b876ba797c
commit
4e1ade20b0
|
@ -273,9 +273,13 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @custom_set.each_with_index do |attr_custom,custom_index| %>
|
<% @custom_set.each_with_index do |attr_custom,custom_index| %>
|
||||||
|
<%
|
||||||
|
seminar_signup_field = SeminarSignupField.where(id:attr_custom.seminar_signup_field_id).first
|
||||||
|
next if seminar_signup_field.nil?
|
||||||
|
%>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<%= SeminarSignupField.where(id:attr_custom.seminar_signup_field_id).first.title rescue '' %>
|
<%= seminar_signup_field.title rescue '' %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" class="field_set" name='<%= "seminar_main[seminar_signup_field_customs][#{custom_index}][hidden]" %>' value="false">
|
<input type="hidden" class="field_set" name='<%= "seminar_main[seminar_signup_field_customs][#{custom_index}][hidden]" %>' value="false">
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<% @field_name_translations << t(th) %>
|
<% @field_name_translations << t(th) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @seminar.seminar_signup_field_customs.count != 0 %>
|
<% if false #@seminar.seminar_signup_field_customs.count != 0 %>
|
||||||
<% @seminar.seminar_signup_field_customs.each do |field_set| %>
|
<% @seminar.seminar_signup_field_customs.each do |field_set| %>
|
||||||
<% s = SeminarSignupField.where(id:field_set.seminar_signup_field_id).first %>
|
<% s = SeminarSignupField.where(id:field_set.seminar_signup_field_id).first %>
|
||||||
<% title = s.title rescue '' %>
|
<% title = s.title rescue '' %>
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% seminar_signup_field_customs = SeminarSignupFieldCustom.all.map{|field_set| SeminarSignupField.where(id: field_set.seminar_signup_field_id).first}.select{|s| !s.nil?}.uniq{|s| s.key } %>
|
<% seminar_signup_field_customs = SeminarSignupFieldCustom.all.map{|field_set| SeminarSignupField.where(id: field_set.seminar_signup_field_id).first}.select{|s| !s.nil?}.uniq{|s| s.key } %>
|
||||||
<% if seminar_signup_field_customs.count != 0 %>
|
<% if false #seminar_signup_field_customs.count != 0 %>
|
||||||
<% seminar_signup_field_customs.each do |s| %>
|
<% seminar_signup_field_customs.each do |s| %>
|
||||||
<% title = s.title rescue '' %>
|
<% title = s.title rescue '' %>
|
||||||
<% next if title.blank? %>
|
<% next if title.blank? %>
|
||||||
|
|
Loading…
Reference in New Issue