组织默认activite status

This commit is contained in:
huang 2016-06-03 09:38:24 +08:00
parent 57bb2f69a4
commit 432baebdc3
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ class OrgSubfieldsController < ApplicationController
# status类型说明详见SubField
def update_status_by_type subfield, type
case type
when "activity"
subfield.update_attribute(:status, 0)
when "Resource"
subfield.update_attribute(:status, 6)
when "Comptec"