fix for Spen's translation and Chris's tag error

This commit is contained in:
Matt K. Fu committed 2013-04-26 15:37:27 +08:00
1 parent 79ef86f2c9
commit 3e567223e3
27 files changed
+29 -29

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ class Admin::TagsController < OrbitBackendController
before_filter :force_order_for_visitor,:only=>[:index]
before_filter :force_order_for_user,:except => [:index]
before_filter :for_app_sub_manager,:except => [:index]
before_filter :set_module_app
# before_filter :set_module_app
def index
@tags = get_tags
@@ -39,7 +39,7 @@ class Admin::TagsController < OrbitBackendController
@tags = @module_app.blank? ? Tag.all : @module_app.tags
end
def set_module_app
def setup_vars
@module_app = ModuleApp.find(params[:module_app_id]) if params[:module_app_id]
@module_app_id = @module_app.id rescue nil
end