Changes for FAQ to work with not latest but stable code

This commit is contained in:
chris committed 2013-03-28 15:05:52 +08:00
1 parent 468555a037
commit 3e96cfe514
10 files changed
+49 -38

No files matched your search

@@ -55,6 +55,9 @@ helper Admin::PagePartsHelper
when 'archive'
@categories = ArchiveFileCategory.all
@tags = ArchiveTag.all
when 'faq'
@categories = QaCategory.all
@tags = FaqTag.all
end
else
@categories = nil
@@ -168,6 +171,9 @@ helper Admin::PagePartsHelper
when 'archive'
@categories = ArchiveFileCategory.all
@tags = ArchiveTag.all
when 'faq'
@categories = QaCategory.all
@tags = FaqTag.all
else
@categories = []
@tags = []