修复team.trustie.net的侧栏点击后没有显示栏目内容的问题

This commit is contained in:
ouyangxuhua 2016-02-23 13:07:42 +08:00
parent c91ef44570
commit d2267106c2
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class Subdomain
o = ::Secdomain.where(subname: request.subdomain).first
if(@opt[:sub])
if o && o.sub_type == 2 && request.path_parameters[:sub_dir_name] == 'news'
if o && o.sub_type == 2
request.path_parameters[:id] = o.pid
request.path_parameters[:controller] = 'org_subfields'
request.path_parameters[:action] = 'show'