diff --git a/vendor/built_in_modules/announcement/init.rb b/vendor/built_in_modules/announcement/init.rb index 3d840e741..0a559dc7a 100644 --- a/vendor/built_in_modules/announcement/init.rb +++ b/vendor/built_in_modules/announcement/init.rb @@ -37,7 +37,7 @@ module Announcement image :image field :postdate link_field :title,{:method => 'panel_announcement_front_end_bulletin_path',:args=>:self} - link_field :bulletin_category_with_title,{:method => 'panel_announcement_front_end_bulletins_path',:args=>{:category_id => [:bulletin_category,:id]}} + link_field :bulletin_category_with_title,{:method => 'panel_announcement_front_end_bulletins_path',:args=>{:category_id => [:category,:id]}} field :subtitle link_to_more 'panel_announcement_front_end_bulletins_path',:title_i18n=> 'more_plus' end diff --git a/vendor/built_in_modules/faq/app/controllers/panel/faq/front_end/qas_controller.rb b/vendor/built_in_modules/faq/app/controllers/panel/faq/front_end/qas_controller.rb index 6a89d5f25..8cf0c0b69 100644 --- a/vendor/built_in_modules/faq/app/controllers/panel/faq/front_end/qas_controller.rb +++ b/vendor/built_in_modules/faq/app/controllers/panel/faq/front_end/qas_controller.rb @@ -37,14 +37,14 @@ class Panel::Faq::FrontEnd::QasController < OrbitWidgetController def show @qa = Qa.find(params[:id]) - get_categorys + # get_categorys end protected def get_categorys - @qa_categorys = QaCategory.excludes('disable' => true) + # @qa_categorys = QaCategory.excludes('disable' => true) end end diff --git a/vendor/built_in_modules/faq/app/models/qa.rb b/vendor/built_in_modules/faq/app/models/qa.rb index 0871923be..0273fc4f1 100644 --- a/vendor/built_in_modules/faq/app/models/qa.rb +++ b/vendor/built_in_modules/faq/app/models/qa.rb @@ -22,7 +22,7 @@ class Qa accepts_nested_attributes_for :qa_files, :allow_destroy => true accepts_nested_attributes_for :qa_links, :allow_destroy => true - belongs_to :qa_category + # belongs_to :qa_category before_save :clean_values diff --git a/vendor/built_in_modules/faq/app/views/panel/faq/front_end/qas/show.html.erb b/vendor/built_in_modules/faq/app/views/panel/faq/front_end/qas/show.html.erb index 970edbd53..7ee6d1b99 100644 --- a/vendor/built_in_modules/faq/app/views/panel/faq/front_end/qas/show.html.erb +++ b/vendor/built_in_modules/faq/app/views/panel/faq/front_end/qas/show.html.erb @@ -2,7 +2,7 @@