fix field

This commit is contained in:
spen 2014-05-20 17:49:18 +08:00 committed by manson
parent d88b2a4e32
commit a39d979a54
1 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,11 @@ class Bulletin
def bulletin_category_with_title
self.category.title
end
def bulletin_create_dept
unit_field = User.get_member_list_attribute_field("staff","unit")
User.get_member_list_attribute_value(self.create_user_id,unit_field.id).get_value_by_locale(I18n.locale) rescue nil
end
def get_bulletin_category
self.category