Commit de044355 authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 110711 - various query.cgi/tmpl problems. This patch resolves all known issues.

parent da9f2287
...@@ -468,7 +468,7 @@ You will get this message once a day until you've dealt with these bugs! ...@@ -468,7 +468,7 @@ You will get this message once a day until you've dealt with these bugs!
DefParam("defaultquery", DefParam("defaultquery",
"This is the default query that initially comes up when you submit a bug. It's in URL parameter format, which makes it hard to read. Sorry!", "This is the default query that initially comes up when you submit a bug. It's in URL parameter format, which makes it hard to read. Sorry!",
"t", "t",
"bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=%22Importance%22"); "bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailassigned_to1=1&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailqa_contact2=1&order=%22Importance%22");
DefParam("letsubmitterchoosepriority", DefParam("letsubmitterchoosepriority",
......
...@@ -347,19 +347,17 @@ function selectProduct(f) { ...@@ -347,19 +347,17 @@ function selectProduct(f) {
</select> </select>
</td> </td>
<td> <td>
<input name="short_desc" size="30" value="[% default.short_desc.0 FILTER html %]" /> <input name="short_desc" size="40" value="[% default.short_desc.0 FILTER html %]" />
</td> </td>
<td> <td>
<input type="submit" value="Search" /> <input type="submit" value="Search" />
</td> </td>
</tr> </tr>
</table>
[%# *** Product Component Version Target *** %] [%# *** Product Component Version Target *** %]
<table>
<tr> <tr>
<td> <td colspan="4">
<table> <table>
<tr valign="bottom"> <tr valign="bottom">
<th align="left">Product:</th> <th align="left">Product:</th>
...@@ -407,12 +405,9 @@ function selectProduct(f) { ...@@ -407,12 +405,9 @@ function selectProduct(f) {
[%# *** Comment URL Whiteboard Keywords *** %] [%# *** Comment URL Whiteboard Keywords *** %]
<tr>
<td>
<table border="0">
[% FOREACH field = [ [% FOREACH field = [
{ name => "long_desc", description => "A comment" }, { name => "long_desc", description => "A&nbsp;comment" },
{ name => "bug_file_loc", description => "The URL" }, { name => "bug_file_loc", description => "The&nbsp;URL" },
{ name => "status_whiteboard", description => "Whiteboard" } ] %] { name => "status_whiteboard", description => "Whiteboard" } ] %]
[% UNLESS field.name == 'status_whiteboard' AND NOT Param('usestatuswhiteboard') %] [% UNLESS field.name == 'status_whiteboard' AND NOT Param('usestatuswhiteboard') %]
...@@ -428,7 +423,9 @@ function selectProduct(f) { ...@@ -428,7 +423,9 @@ function selectProduct(f) {
</select> </select>
</td> </td>
<td><input name="[% field.name %]" size="40" value=" <td><input name="[% field.name %]" size="40" value="
[% default.${field.name}.0 FILTER html %]" /></td> [% default.${field.name}.0 FILTER html %]" />
</td>
<td></td>
</tr> </tr>
[% END %] [% END %]
[% END %] [% END %]
...@@ -454,10 +451,6 @@ function selectProduct(f) { ...@@ -454,10 +451,6 @@ function selectProduct(f) {
</td> </td>
</tr> </tr>
[% END %] [% END %]
</table>
</td>
</tr>
</table> </table>
<hr> <hr>
...@@ -498,6 +491,7 @@ function selectProduct(f) { ...@@ -498,6 +491,7 @@ function selectProduct(f) {
</strong> </strong>
</legend> </legend>
<table> <table>
<tr> <tr>
[% FOREACH n = [1, 2] %] [% FOREACH n = [1, 2] %]
...@@ -511,33 +505,63 @@ function selectProduct(f) { ...@@ -511,33 +505,63 @@ function selectProduct(f) {
</td> </td>
</tr> </tr>
<tr> <tr>
<td><input type="checkbox" name="emailassigned_to[% n %]" value="1" <td>
[% " checked" IF default.emailassigned_to.$n %] />bug owner</td> <input type="checkbox" name="emailassigned_to[% n %]"
id="emailassigned_to[% n %]" value="1"
[% " checked" IF default.emailassigned_to.$n %] />
<label for="emailassigned_to[% n %]">
bug owner
</label>
</td>
</tr> </tr>
<tr> <tr>
<td><input type="checkbox" name="emailreporter[% n %]" value="1" <td>
[% " checked" IF default.emailreporter.$n %] />reporter</td> <input type="checkbox" name="emailreporter[% n %]"
id="emailreporter[% n %]" value="1"
[% " checked" IF default.emailreporter.$n %] />
<label for="emailreporter[% n %]">
reporter
</label>
</td>
</tr> </tr>
[% IF Param('useqacontact') %] [% IF Param('useqacontact') %]
<tr> <tr>
<td><input type="checkbox" name="emailqa_contact[% n %]" value="1" <td>
[% " checked" IF default.emailqa_contact.$n %] />QA Contact</td> <input type="checkbox" name="emailqa_contact[% n %]"
id="emailqa_contact[% n %]" value="1"
[% " checked" IF default.emailqa_contact.$n %] />
<label for="emailqa_contact[% n %]">
QA contact
</label>
</td>
</tr> </tr>
[% END %] [% END %]
<tr> <tr>
<td><input type="checkbox" name="emailcc[% n %]" value="1" <td>
[% " checked" IF default.emailcc.$n %] />CC list member</td> <input type="checkbox" name="emailcc[% n %]"
id="emailcc[% n %]" value="1"
[% " checked" IF default.emailcc.$n %] />
<label for="emailcc[% n %]">
CC list member
</label>
</td>
</tr> </tr>
<tr> <tr>
<td><input type="checkbox" name="emaillongdesc[% n %]" value="1" <td>
[% " checked" IF default.emaillongdesc.$n %] />commenter</td> <input type="checkbox" name="emaillongdesc[% n %]"
id="emaillongdesc[% n %]" value="1"
[% " checked" IF default.emaillongdesc.$n %] />
<label for="emaillongdesc[% n %]">
commenter
</label>
</td>
</tr> </tr>
<tr> <tr>
<td> <td>
<select name="emailtype[% n %]"> <select name="emailtype[% n %]">
[% FOREACH qv = [ [% FOREACH qv = [
{ name => "exact", description => "is" },
{ name => "substring", description => "contains" }, { name => "substring", description => "contains" },
{ name => "exact", description => "is" },
{ name => "regexp", description => "matches regexp" }, { name => "regexp", description => "matches regexp" },
{ name => "notregexp", description => "doesn&#8217;t match regexp" } ] %] { name => "notregexp", description => "doesn&#8217;t match regexp" } ] %]
...@@ -587,6 +611,7 @@ function selectProduct(f) { ...@@ -587,6 +611,7 @@ function selectProduct(f) {
</tr> </tr>
</table> </table>
</fieldset> </fieldset>
</td> </td>
...@@ -596,6 +621,7 @@ function selectProduct(f) { ...@@ -596,6 +621,7 @@ function selectProduct(f) {
<fieldset> <fieldset>
<legend><strong>Bug Changes</strong></legend> <legend><strong>Bug Changes</strong></legend>
<dl> <dl>
<dt>Only bugs changed in the last </dt> <dt>Only bugs changed in the last </dt>
<dd><input name=changedin size=3 value="[% default.changedin.0 FILTER html %]" /> days</dd> <dd><input name=changedin size=3 value="[% default.changedin.0 FILTER html %]" /> days</dd>
...@@ -617,7 +643,7 @@ function selectProduct(f) { ...@@ -617,7 +643,7 @@ function selectProduct(f) {
<dd> <dd>
<input name="chfieldfrom" size="10" value="[% default.chfieldfrom.0 FILTER html %]" /> <input name="chfieldfrom" size="10" value="[% default.chfieldfrom.0 FILTER html %]" />
and <input name="chfieldto" size="10" value="[% default.chfieldto.0 FILTER html %]" /> and <input name="chfieldto" size="10" value="[% default.chfieldto.0 FILTER html %]" />
<br>(YYYY-MM-DD) <br />(YYYY-MM-DD)
</dd> </dd>
<dt>to this value: (optional)</dt> <dt>to this value: (optional)</dt>
<dd> <dd>
...@@ -625,6 +651,7 @@ function selectProduct(f) { ...@@ -625,6 +651,7 @@ function selectProduct(f) {
</dd> </dd>
</dl> </dl>
</fieldset> </fieldset>
</td> </td>
</tr> </tr>
...@@ -637,9 +664,9 @@ function selectProduct(f) { ...@@ -637,9 +664,9 @@ function selectProduct(f) {
[% IF NOT userid %] [% IF NOT userid %]
<input type="hidden" name="cmdtype" value="doit" /> <input type="hidden" name="cmdtype" value="doit" />
[% ELSE %] [% ELSE %]
<br> <br />
<input type="radio" name="cmdtype" value="doit" checked /> Run this query <input type="radio" name="cmdtype" value="doit" checked /> Run this query
<br> <br />
[% IF namedqueries.size > 0 %] [% IF namedqueries.size > 0 %]
<p> <p>
...@@ -675,15 +702,16 @@ function selectProduct(f) { ...@@ -675,15 +702,16 @@ function selectProduct(f) {
<input type="radio" name="cmdtype" value="asdefault" /> <input type="radio" name="cmdtype" value="asdefault" />
Remember this as my default query Remember this as my default query
<br> <br />
<input type="radio" name="cmdtype" value="asnamed" /> <input type="radio" name="cmdtype" value="asnamed" />
Remember this query, and name it: Remember this query, and name it:
<input type="text" name="newqueryname"> <input type="text" name="newqueryname">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="tofooter" value="1" /> <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="tofooter" value="1" />
and put it in my page footer and put it in my page footer
<br> <br />
[% END %] [% END %]
<p> <br />
<div>
Sort results by: Sort results by:
<select name="order"> <select name="order">
[% FOREACH order = orders %] [% FOREACH order = orders %]
...@@ -692,14 +720,14 @@ function selectProduct(f) { ...@@ -692,14 +720,14 @@ function selectProduct(f) {
[% END %] [% END %]
</select> </select>
<input type="submit" value="Submit query" /> <input type="submit" value="Search" />
[% IF userdefaultquery %] [% IF userdefaultquery %]
<p> <p>
<a href="query.cgi?nukedefaultquery=1"> <a href="query.cgi?nukedefaultquery=1">
Set my default query back to the system default</a> Set my default query back to the system default</a>
</p> </p>
[% END %] [% END %]
</p> </div>
</td> </td>
</tr> </tr>
</table> </table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment