Showing
2 changed files
with
2 additions
and
2 deletions
| ... | ... | @@ -96,7 +96,7 @@ module Kanjai |
| 96 | 96 | new_markers_general = item[:field_options].select{|item| item[:attributes]['repeat'] == 'false' }.collect{|item| item[:name] } |
| 97 | 97 | new_markers_repeat = item[:field_options].select{|item| item[:attributes]['repeat'] == 'true' }.collect{|item| item[:name] } |
| 98 | 98 | |
| 99 | - Kanjai::PageContent.where(type_content: item[:code]).each do |page_content| | |
| 99 | + Kanjai::PageContent.joins(page: :page_template).where(type_content: item[:code], kanjai_templates: {id: self.id}).each do |page_content| | |
| 100 | 100 | if page_content.page_content_markers.count == 0 |
| 101 | 101 | page_content.build_markers(item[:code], true) |
| 102 | 102 | else | ... | ... |