Add requirement field to caseruns

git-svn-id: svn://10.0.0.236/trunk@246545 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ghendricks%novell.com 2008-02-26 17:22:29 +00:00
parent 1bffd07de4
commit e37fa3ac9e
2 changed files with 3 additions and 0 deletions

View File

@ -296,6 +296,7 @@ sub to_json {
}
$obj->{'assignee_name'} = $self->assignee->login if $self->assignee;
$obj->{'requirement'} = $self->case->requirement if $self->case;
$obj->{'testedby'} = $self->testedby->login if $self->testedby;
$obj->{'status'} = $self->status;
$obj->{'build_name'} = $self->build->name if $self->build;

View File

@ -305,6 +305,7 @@ CaseRunGrid = function(params, run){
{name: "assignee_name", mapping:"assignee_name"},
{name: "testedby", mapping:"testedby"},
{name: "status", mapping:"status"},
{name: "requirement", mapping:"requirement"},
{name: "category", mapping:"category"},
{name: "priority", mapping:"priority"},
{name: "bug_count", mapping:"bug_count"},
@ -392,6 +393,7 @@ CaseRunGrid = function(params, run){
editor: new Ext.grid.GridEditor(
new CaseCategoryCombo({id: 'caserun_category', params: {product_id: run.plan.product_id}})
),renderer: TestopiaComboRenderer.createDelegate(this)},
{header: "Requirement", width: 150, sortable: true, dataIndex: 'requirement', hidden: true},
{header: "Component", width: 100, sortable: true,dataIndex: 'component'}
];