From 6df0218a48277305ba321bb4696bb7f8be10fda2 Mon Sep 17 00:00:00 2001 From: "ghendricks%novell.com" Date: Wed, 6 Jan 2010 17:28:28 +0000 Subject: [PATCH] Fix run_id and plan_id in csv export of caseruns git-svn-id: svn://10.0.0.236/trunk@259345 18797224-902f-48f8-a5cc-f745e15eee43 --- .../testopia/lib/Testopia/TestCaseRun.pm | 1 + .../en/default/testopia/caserun/list.csv.tmpl | 19 +++++++------------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/mozilla/webtools/testopia/extensions/testopia/lib/Testopia/TestCaseRun.pm b/mozilla/webtools/testopia/extensions/testopia/lib/Testopia/TestCaseRun.pm index 2c0196f546e..ea5b0036c01 100644 --- a/mozilla/webtools/testopia/extensions/testopia/lib/Testopia/TestCaseRun.pm +++ b/mozilla/webtools/testopia/extensions/testopia/lib/Testopia/TestCaseRun.pm @@ -376,6 +376,7 @@ sub fields { case_id case_summary run_id + plan_id build_id environment_id status_id diff --git a/mozilla/webtools/testopia/extensions/testopia/template/en/default/testopia/caserun/list.csv.tmpl b/mozilla/webtools/testopia/extensions/testopia/template/en/default/testopia/caserun/list.csv.tmpl index ea0d1c75b8d..1a0a4499043 100644 --- a/mozilla/webtools/testopia/extensions/testopia/template/en/default/testopia/caserun/list.csv.tmpl +++ b/mozilla/webtools/testopia/extensions/testopia/template/en/default/testopia/caserun/list.csv.tmpl @@ -34,6 +34,10 @@ [% SWITCH column %] [% CASE 'case_id' %] [% cr.case_id FILTER csv %] + [% CASE 'run_id' %] + [% cr.run_id FILTER csv %] + [% CASE 'plan_id' %] + [% cr.run.plan_id FILTER csv %] [% CASE 'case_summary' %] [% cr.case.summary FILTER csv %] [% CASE 'build_id' %] @@ -65,28 +69,19 @@ [% END %] [% END %] [% CASE 'case_text_version' %] - [% cr.case.case_text_version FILTER csv %] + [% cr.case_text_version FILTER csv %] [% CASE 'priority_id' %] [% cr.priority FILTER csv %] [% CASE 'running_date' %] [% cr.running_date FILTER time FILTER csv %] [% CASE 'close_date' %] [% cr.close_date FILTER time FILTER csv %] - [% CASE 'plans' %] - [% FILTER csv %] - [% FOREACH plan = case.plans %] - [% plan.id %] - [% IF plan != case.plans.last %] - [% colsepchar %] - [% END %] - [% END %] - [% END %] [% CASE 'most_current' %] - [% case.iscurrent ? "YES" : "NO" FILTER csv %] + [% cr.iscurrent ? "YES" : "NO" FILTER csv %] [% CASE 'bugs' %] [% cr.get_buglist FILTER csv %] [% CASE DEFAULT %] - [% case.$column FILTER csv %] + [% cr.$column FILTER csv %] [% END %] [% IF column != displaycolumns.last %] [% colsepchar %]