Bug 382179 - Index change not correct
patch by dmalcom@redhat.com r=ghendricks git-svn-id: svn://10.0.0.236/trunk@254768 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d1da9c1598
commit
768bae53ba
@ -387,6 +387,8 @@ sub add_case_run {
|
||||
trick_taint($case_id);
|
||||
return 0 if $self->check_case($case_id);
|
||||
my $case = Bugzilla::Testopia::TestCase->new($case_id);
|
||||
$sortkey = $case->sortkey unless $sortkey;
|
||||
|
||||
return 0 if $case->status ne 'CONFIRMED';
|
||||
my $assignee = $case->default_tester ? $case->default_tester->id : undef;
|
||||
my $caserun = Bugzilla::Testopia::TestCaseRun->create({
|
||||
|
||||
@ -86,6 +86,7 @@ CaseGrid = function(params, cfg){
|
||||
id: 'case_id',
|
||||
fields: [
|
||||
{name: "case_id", mapping:"case_id"},
|
||||
{name: "sortkey", mapping:"sortkey"},
|
||||
{name: "plan_id", mapping: "plan_id"},
|
||||
{name: "alias", mapping:"alias"},
|
||||
{name: "summary", mapping:"summary"},
|
||||
@ -115,6 +116,15 @@ CaseGrid = function(params, cfg){
|
||||
|
||||
this.columns = [
|
||||
{header: "ID", width: 50, dataIndex: 'case_id', sortable: true, groupRenderer: function(v){return v;}, renderer: tutil.caseLink, hideable: false},
|
||||
{header: "Sort Key", width: 50, sortable: true, dataIndex: 'sortkey',
|
||||
editor: new Ext.grid.GridEditor(
|
||||
new Ext.form.NumberField({
|
||||
allowBlank: true,
|
||||
allowDecimals: false,
|
||||
allowNegative: false,
|
||||
})),
|
||||
id: "sortkey"
|
||||
},
|
||||
{header: "Summary",
|
||||
width: 220,
|
||||
dataIndex: 'summary',
|
||||
@ -594,6 +604,9 @@ Ext.extend(CaseGrid, Ext.grid.EditorGridPanel, {
|
||||
var ds = this.store;
|
||||
var display_value = '';
|
||||
switch(gevent.field){
|
||||
case 'sortkey':
|
||||
myparams.sortkey = gevent.value;
|
||||
break;
|
||||
case 'summary':
|
||||
myparams.summary = gevent.value;
|
||||
break;
|
||||
|
||||
@ -68,6 +68,7 @@ if ($action eq 'edit'){
|
||||
$case->set_blocks($cgi->param('tcblocks')) if exists $cgi->{param}->{'tcblocks'} || exists $cgi->{'tcblocks'};
|
||||
$case->set_default_tester($cgi->param('tester')) if exists $cgi->{param}->{'tester'} || exists $cgi->{'tester'};
|
||||
$case->set_estimated_time($cgi->param('estimated_time')) if exists $cgi->{param}->{'estimated_time'} || exists $cgi->{'estimated_time'};
|
||||
$case->set_sortkey($cgi->param('sortkey')) if exists $cgi->{param}->{'sortkey'};
|
||||
|
||||
$case->add_to_run($cgi->param('addruns'));
|
||||
$case->add_tag($cgi->param('newtag'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user