diff --git a/app/controllers/org_subfields_controller.rb b/app/controllers/org_subfields_controller.rb index 496c3aa92..78049e545 100644 --- a/app/controllers/org_subfields_controller.rb +++ b/app/controllers/org_subfields_controller.rb @@ -25,6 +25,8 @@ class OrgSubfieldsController < ApplicationController # status类型说明,详见SubField def update_status_by_type subfield, type case type + when "Resource" + subfield.update_attribute(:status, 6) when "Comptec" subfield.update_attribute(:status, 6) when "Compstu" diff --git a/app/views/organizations/_org_custom_header.html.erb b/app/views/organizations/_org_custom_header.html.erb index fc556255a..6368fef90 100644 --- a/app/views/organizations/_org_custom_header.html.erb +++ b/app/views/organizations/_org_custom_header.html.erb @@ -38,14 +38,9 @@ <%= link_to "首页", organization_path(@organization), :class => "por_index_act" %> <% when 'course' %> -