Closed Bug 545551 Opened 14 years ago Closed 14 years ago

Hook: object_update_columns

Categories

(Bugzilla :: Extensions, enhancement)

3.5.3
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

We need a hook to modify UPDATE_COLUMNS for Bugzilla::Object. The only reason that we need a separate hook from DB_COLUMNS is that it's possible that object_columns could be returning some sort of crazy SQL with an alias, and you can't use that in UPDATE_COLUMNS.
Attached patch v1Splinter Review
Also important to have a separate hook because UPDATE_COLUMNS is called on an instantiated object, and in at least one subclass (Bugzilla::Bug), that matters, currently.
Assignee: extensions → mkanat
Status: NEW → ASSIGNED
Attachment #426396 - Flags: review+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/                       
modified Bugzilla/Hook.pm
modified Bugzilla/Object.pm
modified extensions/Example/Extension.pm
Committed revision 6984.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Flags: approval+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: