Closed Bug 875732 Opened 13 years ago Closed 12 years ago

Need hooks for new column in saved-searches

Categories

(Bugzilla :: Bugzilla-General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: aliustek, Assigned: aliustek)

Details

Attachments

(1 file, 1 obsolete file)

saved-searches needs hooks to provide a way for extensions to insert new columns E.g. MyDashboard on bmo uses two hooks to insert a column. These hooks could be moved to mainstream bugzilla code
Attached patch saved-header/row hooks (obsolete) — Splinter Review
Assignee: general → aliustek
Attachment #753738 - Flags: review?(LpSolit)
Comment on attachment 753738 [details] [diff] [review] saved-header/row hooks Review of attachment 753738 [details] [diff] [review]: ----------------------------------------------------------------- r=dkl. We have this change in our BMO code to support the MyDashboard extension so I know it works fine.
Attachment #753738 - Flags: review+
Flags: approval?
Comment on attachment 753738 [details] [diff] [review] saved-header/row hooks This is mostly good, but you must also fix the first row for "My Bugs". You cannot add anything to it, and the number of cells is then inaccurate for this row. You can reuse the hook name 'saved-row'. Also, please attach a working patch: patch -p0 --dry-run < ~/patches/bug875732.diff (Stripping trailing CRs from patch.) patching file template/en/default/account/prefs/saved-searches.html.tmpl patch unexpectedly ends in middle of line That's because your patch lacks a final newline at the end of the file.
Attachment #753738 - Flags: review?(LpSolit) → review-
Flags: approval?
Target Milestone: --- → Bugzilla 5.0
Added the hook to the top row as well and corrected the patch file ending
Attachment #753738 - Attachment is obsolete: true
Attachment #779358 - Flags: review?(dkl)
Comment on attachment 779358 [details] [diff] [review] saved-searches-saved-row.patch r=dkl
Attachment #779358 - Flags: review?(dkl) → review+
Flags: approval?
Comment on attachment 779358 [details] [diff] [review] saved-searches-saved-row.patch r- on the basis that extensions/Example/template/en/default/account/prefs/ is not updated with an example.
Attachment #779358 - Flags: review+ → review-
Flags: approval?
(In reply to Simon Green from comment #6) > r- on the basis that extensions/Example/template/en/default/account/prefs/ > is not updated with an example. Template hooks do not need an example to be accepted. Only code hooks must be documented and have an example.
Attachment #779358 - Flags: review- → review+
Flags: approval?
Flags: approval? → approval+
Status: NEW → ASSIGNED
Thanks for the patch. Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk modified template/en/default/account/prefs/saved-searches.html.tmpl Committed revision 8692. dkl
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: