diff options
author | lpsolit%gmail.com <> | 2006-06-18 08:12:35 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-06-18 08:12:35 +0200 |
commit | 0d2869cdc8bf59db57e80e7e3a0c0c377fc0ffb5 (patch) | |
tree | 03ab21ba894bffea01fb977c93b4ede6f553742f /template/en/default/bug/create/create.html.tmpl | |
parent | d9548f66b0f47af651f8fa62fa69cc7e65df0a60 (diff) | |
download | bugzilla-0d2869cdc8bf59db57e80e7e3a0c0c377fc0ffb5.tar.gz bugzilla-0d2869cdc8bf59db57e80e7e3a0c0c377fc0ffb5.tar.xz |
Bug 338796: Remove get_product_* from globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
Diffstat (limited to 'template/en/default/bug/create/create.html.tmpl')
-rw-r--r-- | template/en/default/bug/create/create.html.tmpl | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index eddb8bc68..a0b186072 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -21,32 +21,29 @@ # Shane H. W. Travis <travis@sedsystems.ca> #%] -[% PROCESS global/variables.none.tmpl %] [% PROCESS "global/field-descs.none.tmpl" %] -[% product_name = product FILTER html %] [% PROCESS global/header.html.tmpl - title = "Enter $terms.Bug: $product_name" + title = "Enter $terms.Bug: $product.name" onload="set_assign_to();" %] -[% USE Bugzilla %] <script type="text/javascript"> <!-- -var initialowners = new Array([% component_.size %]); +var initialowners = new Array([% product.components.size %]); var last_initialowner; -var components = new Array([% component_.size %]); +var components = new Array([% product.components.size %]); [% IF Param("useqacontact") %] - var initialqacontacts = new Array([% component_.size %]); + var initialqacontacts = new Array([% product.components.size %]); var last_initialqacontact; [% END %] [% count = 0 %] -[%- FOREACH c = component_ %] +[%- FOREACH c = product.components %] components[[% count %]] = "[% c.name FILTER js %]"; - initialowners[[% count %]] = "[% c.initialowner FILTER js %]"; + initialowners[[% count %]] = "[% c.default_assignee.login FILTER js %]"; [% IF Param("useqacontact") %] - initialqacontacts[[% count %]] = "[% c.initialqacontact FILTER js %]"; + initialqacontacts[[% count %]] = "[% c.default_qa_contact.login FILTER js %]"; [% END %] [% count = count + 1 %] [%- END %] @@ -93,7 +90,7 @@ function set_assign_to() { </script> <form name="Create" id="Create" method="post" action="post_bug.cgi"> -<input type="hidden" name="product" value="[% product FILTER html %]"> +<input type="hidden" name="product" value="[% product.name FILTER html %]"> <input type="hidden" name="token" value="[% token FILTER html %]"> <table cellspacing="2" cellpadding="0" border="0"> @@ -118,10 +115,10 @@ function set_assign_to() { <tr> <td align="right" valign="top"><strong>Reporter:</strong></td> - <td valign="top">[% Bugzilla.user.login FILTER html %]</td> + <td valign="top">[% user.login FILTER html %]</td> <td align="right" valign="top"><strong>Product:</strong></td> - <td valign="top">[% product FILTER html %]</td> + <td valign="top">[% product.name FILTER html %]</td> </tr> [%# We can't use the select block in these two cases for various reasons. %] @@ -141,13 +138,13 @@ function set_assign_to() { <td align="right" valign="top"> <strong> - <a href="describecomponents.cgi?product=[% product FILTER url_quote %]"> + <a href="describecomponents.cgi?product=[% product.name FILTER url_quote %]"> Component</a>: </strong> </td> <td> <select name="component" onchange="set_assign_to();" size="5"> - [%- FOREACH c = component_ %] + [%- FOREACH c = product.components %] <option value="[% c.name FILTER html %]" [% " selected=\"selected\"" IF c.name == default.component_ %]> [% c.name FILTER html -%] |