small fix

This commit is contained in:
Harry Bomrah 2016-01-05 15:43:55 +08:00
parent e384ecff3c
commit 9455e14ebf
1 changed files with 6 additions and 2 deletions

View File

@ -28,7 +28,9 @@ class Admin::AdminModulesController < OrbitAdminController
def uninstall_site_list
rm = RegisteredModule.find(params[:id]) rescue nil
@registered_sites = site_list_with_module(rm)
slwm = site_list_with_module(rm, true)
@registered_sites = slwm.first
@times = slwm.last
render :layout => false
end
@ -42,7 +44,9 @@ class Admin::AdminModulesController < OrbitAdminController
def grant_list
rm = RegisteredModule.find(params[:id]) rescue nil
@registered_sites = site_list_with_module(rm, false)
slwm = site_list_with_module(rm, true)
@registered_sites = slwm.first
@times = slwm.last
render :layout => false
end