Closed
Bug 279748
Opened 20 years ago
Closed 20 years ago
Move GetFieldDefs out of globals.pl (to Bugzilla::DB)
Categories
(Bugzilla :: Bugzilla-General, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(1 file)
|
4.30 KB,
patch
|
goobix
:
review+
|
Details | Diff | Splinter Review |
I'm going to move the GetFieldDefs function to Bugzilla::Bug. I'm also going to make it stop using SendSQL calls, while I do that.
| Assignee | ||
Comment 1•20 years ago
|
||
OK. It uses DBI, and it's now in Bugzilla::Bug. I tested the two places where it's used (it's very simple to test) and they still work. I also added some pod documentation for it.
| Assignee | ||
Updated•20 years ago
|
Attachment #172344 -
Flags: review?
Comment 2•20 years ago
|
||
Comment on attachment 172344 [details] [diff] [review] Move GetFieldDefs and change to use DBI + my @fields = GetFieldDefs(); Shouldn't that be Bugzilla::DB::GetFieldDefs()? First because it's not exported by default in the package, and secondly because the "# Connection" section which is right above it uses it. Otherwise looks good. If you agree it's a good thing, it can be fixed upon check in or if you have the time you can make a new patch and carry my review.
Attachment #172344 -
Flags: review? → review+
Updated•20 years ago
|
Status: NEW → ASSIGNED
Flags: approval?
Target Milestone: --- → Bugzilla 2.20
| Assignee | ||
Comment 3•20 years ago
|
||
Oh yeah, I agree that's a good thing and can just be fixed on checkin.
Updated•20 years ago
|
Flags: approval? → approval+
Comment 4•20 years ago
|
||
Committed... but I lost the checkin messages. :( ... except for this one: Checking in Bugzilla/DB.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB.pm,v <-- DB.pm new revision: 1.16; previous revision: 1.15 done ... because I had to check that file twice; I missed the 'fix on checkin' comment initially.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Summary: Move GetFieldDefs out of globals.pl (to Bugzilla::Bug) → Move GetFieldDefs out of globals.pl (to Bugzilla::DB)
You need to log in
before you can comment on or make changes to this bug.
Description
•