Fixed bug in gam <UserItem> print|show chatspaces asadmin fields <ChatSpaceFieldNameList>`

This commit is contained in:
Ross Scroggs
2025-07-31 10:59:26 -07:00
parent a9d8ac27d3
commit ce7e506c29
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
7.17.03
Fixed bug in gam <UserItem> print|show chatspaces asadmin fields <ChatSpaceFieldNameList>` that caused a trap
when `isplayname` was not in `<ChatSpaceFieldNameList>`.
7.17.02 7.17.02
Updated `gam <UserTypeEntity> print|show webmastersites` to handle the following error Updated `gam <UserTypeEntity> print|show webmastersites` to handle the following error

View File

@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
""" """
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>' __author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
__version__ = '7.17.02' __version__ = '7.17.03'
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
#pylint: disable=wrong-import-position #pylint: disable=wrong-import-position
@@ -26940,7 +26940,7 @@ def printShowChatSpaces(users):
substituteQueryTimes(queries, queryTimes) substituteQueryTimes(queries, queryTimes)
pfilter = kwargsCS['query'] = queries[0] pfilter = kwargsCS['query'] = queries[0]
kwargsCS['useAdminAccess'] = True kwargsCS['useAdminAccess'] = True
sortName = 'displayName' sortName = 'displayName' if 'displayName' in fieldsList else 'name'
else: else:
sortName = 'name' sortName = 'name'
for user in users: for user in users: