Last Comment Bug 562551 - Template Hooks cannot be utilized without code (Extension.pm/Config.pm) extensions existing
: Template Hooks cannot be utilized without code (Extension.pm/Config.pm) exten...
Status: RESOLVED FIXED
:
Product: Bugzilla
Classification: Server Software
Component: Extensions (show other bugs)
: 3.6
: All All
: -- normal (vote)
: Bugzilla 3.6
Assigned To: Max Kanat-Alexander
: default-qa
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-28 20:36 PDT by Nicholas Herring
Modified: 2010-05-05 19:16 PDT (History)
2 users (show)
mkanat: approval+
mkanat: blocking3.6.1+
See Also:
QA Whiteboard:
Iteration: ---
Points: ---


Attachments
v1 (679 bytes, patch)
2010-04-28 21:04 PDT, Max Kanat-Alexander
mkanat: review+
Details | Diff | Review

Description Nicholas Herring 2010-04-28 20:36:28 PDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5
Build Identifier: 3.6

I tried to extend a template using the comments-aftercomments hook with the following location:

extensions/TestMe/template/en/default/hook/bug/comments-aftercomments.html.tmpl

This would not work unless I used extensions/create.pl

Reproducible: Always

Steps to Reproduce:
Within bugzilla root:

1.mkdir -p extensions/TestMe/template/en/default/hook/bug/
2.nano extensions/TestMe/template/en/default/hook/bug/comments-aftercomments.html.tmpl
3.enter <h1>Test Me</h1>
4.Save
5.run checksetup.pl
Actual Results:  
No effect.

Expected Results:  
Heading 1 text after bug comments with the words "Test Me"

This will work if I copy the same file into the template folder of an extension created using extension/create.pl

I am assuming it is intended to allow creation of template hook files without the need for any special setup.
Comment 1 Max Kanat-Alexander 2010-04-28 21:04:45 PDT
Created attachment 442304 [details] [diff] [review]
v1

Okay, this fixes it.
Comment 2 Max Kanat-Alexander 2010-05-05 19:16:13 PDT
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/Install/Util.pm
Committed revision 7146.

Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/3.6/
modified Bugzilla/Install/Util.pm
Committed revision 7092.

Note You need to log in before you can comment on or make changes to this bug.