spen's fix for user
This commit is contained in:
parent
54a35b30be
commit
2806dd35a9
|
@ -188,7 +188,7 @@ class User
|
|||
|
||||
def self.get_role_member_data_by_sort(role_status_id)
|
||||
a = Array.new
|
||||
where(:role_status_ids=>role_status_id).desc(:_id).collect{|t| a << [ get_member_list_attribute_value(t.id,"staff","job_title")['val'], t ] }
|
||||
where(:role_status_ids=>role_status_id).desc(:_id).collect{|t| a << [ get_member_list_attribute_value(t.id,"staff","job_title")['val'].to_i, t ] }
|
||||
member_data = a.sort
|
||||
member_data_tmp = member_data.collect {|v| v[1] }
|
||||
end
|
||||
|
|
Reference in New Issue