fix for dept

This commit is contained in:
Matthew K. Fu JuYuan 2012-08-14 13:13:06 +08:00
parent 83569fac82
commit 5bb4aa95ee
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ class Bulletin
end
def fetch_dept
self.cache_dept = (User.current.cache_dept rescue nil) || (User.find(self.create_user_id).cache_dept rescue nil) if self.new_record?
self.cache_dept = (User.find(self.create_user_id).cache_dept rescue nil) if self.new_record?
end
end