Closed
Bug 324783
Opened 19 years ago
Closed 18 years ago
The chartgroup, insidergroup and timetrackinggroup groups in editparams.cgi should be listed in a dropdown menu
Categories
(Bugzilla :: Administration, task)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: LpSolit, Assigned: LpSolit)
References
()
Details
Attachments
(1 file)
3.22 KB,
patch
|
mkanat
:
review+
cso
:
review+
|
Details | Diff | Splinter Review |
This doesn't make sense to "guess" the group names. We already moved from a text field to a dropdown menu in editflagtypes.cgi, we should do the same here. It's boring to manually enter the group names and then realize this doesn't work because you did a typo. I would even tend to take it for 2.22, but that's probably too late.
Assignee | ||
Comment 1•19 years ago
|
||
Note also that there is no check about entered groups. editparams.cgi should at least make sure the groups you entered are valid ones. In the same way, editgroups.cgi should: 1) update the group in editparams.cgi when a group used by it is renamed; 2) reject to delete a group if the group is used by editparams.cgi. I will fill a new bug for editgroups.cgi. And let fix editparams.cgi here.
Status: NEW → ASSIGNED
Assignee | ||
Updated•18 years ago
|
Assignee | ||
Comment 2•18 years ago
|
||
Attachment #226365 -
Flags: review?(wicked+bz)
Comment 3•18 years ago
|
||
Comment on attachment 226365 [details] [diff] [review] patch, v1 >Index: Bugzilla/Config/Common.pm >+sub check_group { >+ my $group_name = shift; >+ my $group = new Bugzilla::Group({'name' => $group_name}); >+ unless (defined $group) { >+ return "Must be an existing group name"; >+ } >+ return ""; >+} >+ Nit: It may be personal, but I'd prefer: return "Must be an existing group name" unless defined $group;
Attachment #226365 -
Flags: review+
Updated•18 years ago
|
Attachment #226365 -
Flags: review?(wicked+bz) → review+
Assignee | ||
Updated•18 years ago
|
Flags: approval?
Updated•18 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 4•18 years ago
|
||
Checking in Bugzilla/Group.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Group.pm,v <-- Group.pm new revision: 1.13; previous revision: 1.12 done Checking in Bugzilla/Config/Common.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Config/Common.pm,v <-- Common.pm new revision: 1.9; previous revision: 1.8 done Checking in Bugzilla/Config/GroupSecurity.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Config/GroupSecurity.pm,v <-- GroupSecurity.pm new revision: 1.4; previous revision: 1.3 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•