New Hook: object_columns

RESOLVED FIXED in Bugzilla 4.0

Status

()

Bugzilla
Extensions
--
enhancement
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: Max Kanat-Alexander, Assigned: Max Kanat-Alexander)

Tracking

3.5.3
Bugzilla 4.0
Bug Flags:
approval +

Details

Attachments

(1 attachment)

v1
7.33 KB, patch
Max Kanat-Alexander
: review+
Details | Diff | Splinter Review
(Assignee)

Description

9 years ago
This is a hook to add new values to DB_COLUMNS for a particular class.
(Assignee)

Comment 1

9 years ago
Created attachment 426389 [details] [diff] [review]
v1

Here we go. Unlike with the VALIDATORS hook, you can't modify existing columns. If somebody comes up with an important use case in the future for modifying columns, then we can change the hook, but it seemed safer for now to simply only allow adding new columns.

Granting myself review as Extensions module owner. This does touch a few other places, but the changes are very straightforward.
Assignee: extensions → mkanat
Status: NEW → ASSIGNED
Attachment #426389 - Flags: review+
(Assignee)

Comment 2

9 years ago
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/                       
modified Bugzilla/Flag.pm
modified Bugzilla/Hook.pm
modified Bugzilla/Keyword.pm
modified Bugzilla/Object.pm
modified Bugzilla/Field/Choice.pm
modified contrib/console.pl
modified extensions/Example/Extension.pm
Committed revision 6983.
Status: ASSIGNED → RESOLVED
Last Resolved: 9 years ago
Flags: approval+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.