Showing
2 changed files
with
2 additions
and
2 deletions
| @@ -98,7 +98,7 @@ module Kanjai | @@ -98,7 +98,7 @@ module Kanjai | ||
| 98 | @type_contents += page_template.template_parts.where("part_type in ('content')").collect{|p| [p.name, p.code] } | 98 | @type_contents += page_template.template_parts.where("part_type in ('content')").collect{|p| [p.name, p.code] } |
| 99 | page_template.template_parts.where("part_type in ('content')").each do |item| | 99 | page_template.template_parts.where("part_type in ('content')").each do |item| |
| 100 | item.field_options.each do |el| | 100 | item.field_options.each do |el| |
| 101 | - @main_field << el[:name] if el[:mail].to_i == 1 | 101 | + @main_field << el[:name] if el[:main].to_i == 1 |
| 102 | end | 102 | end |
| 103 | end | 103 | end |
| 104 | end | 104 | end |