fix field

This commit is contained in:
spen 2014-05-20 17:49:18 +08:00
parent 64b80092f6
commit 768f03954f
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,11 @@ class Bulletin
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
end