1234567891011121314151617181920212223 |
- # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- class Organization
- module SearchIndex
- extend ActiveSupport::Concern
- def search_index_attribute_lookup(include_references: true)
- attributes = super
- if include_references
- # add org members for search index data
- attributes['members'] = []
- users = members | secondary_members
- users.sort.each do |user|
- attributes['members'].push user.search_index_attribute_lookup(include_references: false)
- end
- end
- attributes
- end
- end
- end
|