diff --git a/app/controllers/admin/page_parts_controller.rb b/app/controllers/admin/page_parts_controller.rb index bde46659..605b3419 100644 --- a/app/controllers/admin/page_parts_controller.rb +++ b/app/controllers/admin/page_parts_controller.rb @@ -39,7 +39,6 @@ class Admin::PagePartsController < OrbitBackendController else @tag_objects = @r_tag.classify.constantize.all rescue nil end - @html_class = "page-parts" end diff --git a/app/models/module_app.rb b/app/models/module_app.rb index 8218731b..475dec86 100644 --- a/app/models/module_app.rb +++ b/app/models/module_app.rb @@ -30,6 +30,7 @@ class ModuleApp self[:enable_frontend] = reg.get_enable_frontend self[:get_widget_style] = reg.get_widgets self[:using_default_widget] = !reg.get_default_widget.blank? + self[:enable_widget_data_count] = reg.get_enable_widget_data_count self[:widgets] = reg.get_widgets self[:has_tag] = reg.get_has_tags self[:has_category] = reg.get_has_category @@ -59,6 +60,10 @@ class ModuleApp get_registration.get_default_widget end + def get_enable_widget_data_count + get_registration.get_enable_widget_data_count + end + def get_widget_for_select widgets = get_widget_style diff --git a/app/views/admin/page_parts/edit.html.erb b/app/views/admin/page_parts/edit.html.erb index f60a00c4..cdf49624 100644 --- a/app/views/admin/page_parts/edit.html.erb +++ b/app/views/admin/page_parts/edit.html.erb @@ -129,7 +129,7 @@