Closed
Bug 523999
Opened 16 years ago
Closed 15 years ago
New Hook: template-before_create
Categories
(Bugzilla :: Bugzilla-General, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.6
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
(Whiteboard: [es-ita])
Attachments
(1 file)
|
3.63 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
This hook allows developers to change the configuration of the Bugzilla::Template object in a hook.
Attachment #407906 -
Flags: review?(dkl)
| Assignee | ||
Updated•16 years ago
|
Whiteboard: [es-ita]
Comment 1•16 years ago
|
||
Is there a way to get the name of the current CGI or details about the current request? I can imagine that someone might only want to add expensively-computed stuff to the Template config in the circumstances where the template was going to need it...
Gerv
| Assignee | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> Is there a way to get the name of the current CGI or details about the current
> request? I can imagine that someone might only want to add expensively-computed
> stuff to the Template config in the circumstances where the template was going
> to need it...
That would be best done during template-before_process instead of in this hook.
| Assignee | ||
Comment 3•15 years ago
|
||
Comment on attachment 407906 [details] [diff] [review]
v1
Granting myself review as module owner.
Attachment #407906 -
Flags: review?(dkl) → review+
| Assignee | ||
Updated•15 years ago
|
Flags: approval+
| Assignee | ||
Comment 4•15 years ago
|
||
Checking in Bugzilla/Hook.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Hook.pm,v <-- Hook.pm
new revision: 1.40; previous revision: 1.39
done
Checking in Bugzilla/Template.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Template.pm,v <-- Template.pm
new revision: 1.116; previous revision: 1.115
done
RCS file: /cvsroot/mozilla/webtools/bugzilla/extensions/example/code/template-before_create.pl,v
done
Checking in extensions/example/code/template-before_create.pl;
/cvsroot/mozilla/webtools/bugzilla/extensions/example/code/template-before_create.pl,v <-- template-before_create.pl
initial revision: 1.1
done
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•