Commit cb827a49f26f32b7959fc8a96af10720f1b42b59

Authored by Karpikau Andrei
1 parent 98a1bbb1

test

... ... @@ -124,7 +124,7 @@ module Kanjai
124 124 elsif self.type_content == 'plugin'
125 125 "#{I18n.t('admin.content_types.plugin')}: #{controller_name}.#{action_name}"
126 126 else
127   - subpart = TemplatePart.find_by_code(self.type_content)
  127 + subpart = page.page_template.template_parts.find_by_code(self.type_content)
128 128 subpart ? subpart.name : self.type_content
129 129 end
130 130 end
... ...
1 1 module Kanjai
2   - VERSION = "0.0.191"
  2 + VERSION = "0.0.192"
3 3 end
... ...