Closed Bug 339383 Opened 18 years ago Closed 18 years ago

Make Bugzilla::Group use Bugzilla::Object

Categories

(Bugzilla :: Bugzilla-General, enhancement)

2.23
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file, 2 obsolete files)

 
Attached patch v1 (obsolete) — Splinter Review
Okay, this is a relatively simple patch, it should be fairly easy to review. It's mostly just deleting code.
Assignee: general → mkanat
Status: NEW → ASSIGNED
Attachment #231906 - Flags: review?(bugzilla-mozilla)
Blocks: 346597
Attached patch v1.1 (obsolete) — Splinter Review
Oh, there was a small error in the POD. Fixed in this patch.
Attachment #231906 - Attachment is obsolete: true
Attachment #231906 - Flags: review?(bugzilla-mozilla)
Attachment #231913 - Flags: review?(bugzilla-mozilla)
Comment on attachment 231913 [details] [diff] [review]
v1.1

>Index: Bugzilla/Group.pm

>-sub get_all_groups {
>-    my $dbh = Bugzilla->dbh;
>-
>-    my $group_ids = $dbh->selectcol_arrayref('SELECT id FROM groups
>-                                              ORDER BY isbuggroup, name');

The get_all from Bugzilla::Object does not sort by isbuggroup first, causing the editgroups.cgi interface and editflagtypes.cgi to look ugly.

Rest of the patch was good.
Attachment #231913 - Flags: review?(bugzilla-mozilla) → review-
Attached patch v1.2Splinter Review
Okay, that was an easy fix. :-) I just added a LIST_ORDER constant in Bugzilla::Group.
Attachment #231913 - Attachment is obsolete: true
Attachment #232400 - Flags: review?(bugzilla-mozilla)
Attachment #232400 - Flags: review?(bugzilla-mozilla) → review+
Flags: approval?
Flags: approval? → approval+
/cvsroot/mozilla/webtools/bugzilla/editflagtypes.cgi,v  <--  editflagtypes.cgi
new revision: 1.45; previous revision: 1.44
done
Checking in editgroups.cgi;
/cvsroot/mozilla/webtools/bugzilla/editgroups.cgi,v  <--  editgroups.cgi
new revision: 1.79; previous revision: 1.78
done
Checking in Bugzilla/Group.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Group.pm,v  <--  Group.pm
new revision: 1.15; previous revision: 1.14
done
Checking in Bugzilla/Config/GroupSecurity.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Config/GroupSecurity.pm,v  <--  GroupSecurity.pm
new revision: 1.8; previous revision: 1.7
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.

Attachment

General

Created:
Updated:
Size: