Environment combo only showing first 25

git-svn-id: svn://10.0.0.236/trunk@248789 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ghendricks%novell.com 2008-03-28 19:15:35 +00:00
parent 0f55c65f88
commit beaede67c0
4 changed files with 35 additions and 6 deletions

View File

@ -272,7 +272,30 @@ Ext.extend(PlanGrid, Ext.grid.EditorGridPanel, {
url: newPortlet.url
});
}
}]
},{
text: 'New Bug Report',
handler: function(){
Ext.getCmp('object_panel').setActiveTab('dashboardpanel');
var bug_list = new Testopia.BugReport({
plan_ids: getSelectedObjects(grid, 'plan_id')
});
var newPortlet = new Ext.ux.Portlet({
title: 'Bug Report',
closable: true,
autoScroll: true,
tools: [{
id:'close',
handler: function(e, target, panel){
panel.ownerCt.remove(panel, true);
}
}],
items: bug_list
});
Ext.getCmp('dashboard_leftcol').add(newPortlet);
Ext.getCmp('dashboard_leftcol').doLayout();
bug_list.store.load();
}
}]
}
},{
text: 'Refresh List',

View File

@ -295,7 +295,12 @@ Ext.extend(RunGrid, Ext.grid.EditorGridPanel, {
title: 'Bug Report',
closable: true,
autoScroll: true,
tools: PortalTools,
tools: [{
id:'close',
handler: function(e, target, panel){
panel.ownerCt.remove(panel, true);
}
}],
items: bug_list
});
Ext.getCmp('dashboard_leftcol').add(newPortlet);
@ -638,7 +643,7 @@ var NewRunForm = function(plan){
Ext.getCmp('plan_run_grid').store.reload();
}
try {
Ext.getCmp('newrun-win').close();
Ext.getCmp('newRun-win').close();
}
catch (err){}
},
@ -651,7 +656,7 @@ var NewRunForm = function(plan){
handler: function(){
Ext.getCmp('newrunsouth').getForm().reset();
try {
Ext.getCmp('newrun-win').close();
Ext.getCmp('newRun-win').close();
}
catch (err){}
}
@ -949,7 +954,7 @@ Testopia.BugReport = function(params){
]}),
remoteSort: true,
sortInfo: {field: 'run_id', direction: "ASC"},
groupField: 'run_id'
groupField: 'bug_id'
});
this.view = new Ext.grid.GroupingView({
forceFit:true,

View File

@ -554,6 +554,7 @@ Ext.extend(CaseCategoryCombo, Ext.form.ComboBox);
* EnvironmentCombo
*/
EnvironmentCombo = function(cfg){
cfg.params.viewall = 1;
EnvironmentCombo.superclass.constructor.call(this,{
id: cfg.id || 'environment_combo',
store: cfg.transform ? false : new EnvironmentStore(cfg.params, cfg.mode == 'local'? true : false),

View File

@ -143,7 +143,7 @@ elsif ($type eq 'bug'){
push @ids, $r->id;
}
my $ref = $dbh->selectall_arrayref("
SELECT tcb.bug_id, tcr.run_id, tcr.case_id
SELECT DISTINCT tcb.bug_id, tcr.run_id, tcr.case_id
FROM test_case_bugs AS tcb
INNER JOIN test_case_runs AS tcr ON tcr.case_id = tcb.case_id
WHERE tcr.run_id in (" . join (',',@ids) . ")",