Ticket #2669 (closed Bug: duplicate)
group titles should be used instead of ids for display
| Reported by: | gerrykirk | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 3.1.5 |
| Component: | Users/Groups | Version: | |
| Severity: | Keywords: | ||
| Cc: |
Description (last modified by hannosch) (diff)
group id is shown everywhere, but like all other content, title seems more appropriate, with id as a fallback.
Change History
comment:3 Changed 8 years ago by tiran
This bug cannot be fixed in plone. group.getGroupName() returns the id instead of the title. IMO it's a gruf bug
comment:4 Changed 7 years ago by gerrykirk
In my site, I have a script I called getGroupTitleOrId which retrieves the title property of the group or the id if title is . That's one way - any better ideas?
comment:5 Changed 7 years ago by gerrykirk
create a getGroupInfo() method in the GroupTool like getMemberInfo() in MembershipTool
comment:6 Changed 7 years ago by ingeniweb
A group name is merely the same as a group id (in fact, a group id always start with 'group_'). A group title is NOT the same as a group name. So is's not a gruf bug : the concept of title should be added with a "getGroupTitleOrName" method.
comment:8 Changed 7 years ago by DannyB
I looked into this a bit and I think GroupDataTool.py needs the following code:
def getGroupTitleOrId(self):
"""Get the Title property of the group. If there is none then return the id """ title = self.getProperty('title', None) return title or self.getGroupId()
Also, searching for groups in plone must also be title aware so GroupsTool.searchForGroups needs to be adapted so it first searches the title and then name (id).
comment:9 Changed 7 years ago by DannyB
- Status changed from new to closed
- Resolution set to fixed
Fixed. Also made the group prefs suck a bit less. These pages really have to be taken care of in the next release. I also disabled the group search feature in prefs_groups_overview because it made things much worse. It's no use to have a search box that doesn't search. So, now groups are shown using their title and descriptions for tooltips. folder_localrole_form also uses this info. This requires a GRUF update!!
comment:10 Changed 4 years ago by stefmac
- Status changed from closed to reopened
- Resolution fixed deleted
- Milestone changed from 2.1 to 3.0.x
This is newly bad in 3.0.5, already in the groups administration page (the hints are incorrectly "group id", too). But it is correctly displayed (Title as group name, and Description as hint) in Plone 2.5.4
comment:11 Changed 4 years ago by hannosch
- Type changed from defect to Bug
- Description modified (diff)
comment:12 Changed 4 years ago by hannosch
- Status changed from reopened to closed
- Resolution set to duplicate
I'll shamelessly call this a duplicate of #7277 to get rid of the older bug number.

I agree.