From dc298dff2dfd017883a52ca17bf3701a635bca91 Mon Sep 17 00:00:00 2001 From: "ghendricks%novell.com" Date: Mon, 5 Mar 2007 22:36:45 +0000 Subject: [PATCH] Add option to update bugs from classic interface git-svn-id: svn://10.0.0.236/trunk@221351 18797224-902f-48f8-a5cc-f745e15eee43 --- .../en/default/testopia/caserun/form.html.tmpl | 10 ++++++---- .../en/default/testopia/caserun/short-form.html.tmpl | 2 +- .../en/default/testopia/caserun/show.html.tmpl | 3 ++- mozilla/webtools/testopia/tr_show_caserun.cgi | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/mozilla/webtools/testopia/template/en/default/testopia/caserun/form.html.tmpl b/mozilla/webtools/testopia/template/en/default/testopia/caserun/form.html.tmpl index 231b4ceaf2c..e926e416df5 100644 --- a/mozilla/webtools/testopia/template/en/default/testopia/caserun/form.html.tmpl +++ b/mozilla/webtools/testopia/template/en/default/testopia/caserun/form.html.tmpl @@ -84,9 +84,9 @@ +[% IF run %] -[% IF run %] + [% END %] + - +
Build [% PROCESS select sel = { name => "caserun_build", list => build_list, @@ -106,17 +106,19 @@ value="[% caserun.environment.id FILTER none %]" [% END %]>
Assignee Attach [% terms.Bugs %]Attach [% terms.Bugs %]  Log a New Bug - +
Update [% terms.bug %] status
-
+ diff --git a/mozilla/webtools/testopia/template/en/default/testopia/caserun/short-form.html.tmpl b/mozilla/webtools/testopia/template/en/default/testopia/caserun/short-form.html.tmpl index b2e9cb2a808..d6f5500adce 100644 --- a/mozilla/webtools/testopia/template/en/default/testopia/caserun/short-form.html.tmpl +++ b/mozilla/webtools/testopia/template/en/default/testopia/caserun/short-form.html.tmpl @@ -109,7 +109,7 @@ [%##### Bugs #####%]
- Update bug status + Update [% terms.bug %] status
[% terms.Bugs %] detected (all runs):
[ diff --git a/mozilla/webtools/testopia/template/en/default/testopia/caserun/show.html.tmpl b/mozilla/webtools/testopia/template/en/default/testopia/caserun/show.html.tmpl index bd0913898de..5a988ba0234 100644 --- a/mozilla/webtools/testopia/template/en/default/testopia/caserun/show.html.tmpl +++ b/mozilla/webtools/testopia/template/en/default/testopia/caserun/show.html.tmpl @@ -115,11 +115,12 @@
[% END %]
Status
-

Attributes

+

Attachments

[% PROCESS testopia/attachment/table.html.tmpl item = caserun.case %] +

Attributes

[% PROCESS testopia/caserun/form.html.tmpl %]
[% PROCESS global/footer.html.tmpl %] diff --git a/mozilla/webtools/testopia/tr_show_caserun.cgi b/mozilla/webtools/testopia/tr_show_caserun.cgi index 46d27111470..9f93b553d22 100755 --- a/mozilla/webtools/testopia/tr_show_caserun.cgi +++ b/mozilla/webtools/testopia/tr_show_caserun.cgi @@ -332,7 +332,7 @@ sub do_update { # If there is not one, it will create it and switch to that. $caserun = $caserun->switch($build,$env); - $caserun->set_status($status) if ($caserun->status_id != $status); + $caserun->set_status($status, $cgi->param('update_bug')) if ($caserun->status_id != $status); $caserun->set_assignee($assignee) if ($caserun->assignee && $caserun->assignee->id != $assignee); $caserun->append_note($notes) if ($notes && $caserun->notes !~ /$notes/);