Package: bugzilla
Version: 2.22-1

After upgrading to 2.22-1, a person using IE to access Bugzilla
noticed that a script error occurred when opening the Search for bugs
- Advanced Search page.

I investigated and found that the URL specified by a <script> tag was incorrect:

<script src="js/productform.js" type="text/javascript"></script>

This is set by several of the search templates, e.g.
search/search-advanced.html.tmpl, line 43:

javascript_urls = [ "js/productform.js" ]

That's then processed by global/header.html.tmpl, line 78:

<script src="[% javascript_url FILTER html %]" type="text/javascript"></script>

My understanding of this "template" language, and my familiarity with
the architecture of Bugzilla, are both somewhere near to zero. But
here's my best guess at fixing the problem:

<script src="[% webpath %][% javascript_url FILTER html %]"
type="text/javascript"></script>

So now the generated HTML reads:

<script src="/bugzilla/js/productform.js" type="text/javascript"></script>

Things seem to be working now, but I can't be sure that this is The
Correct Solution (tm).

Could you please take a look at this? Thanks.

-- graham


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to