Can't pass a list of plans on tr_query for cases.

git-svn-id: svn://10.0.0.236/trunk@228904 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ghendricks%novell.com 2007-06-27 23:10:15 +00:00
parent 6c731c5918
commit 6a17bbb213

View File

@ -400,9 +400,11 @@ $vars->{'status_list'} = $status_list;
$vars->{'priority_list'} = $priority_list;
$vars->{'table'} = $table;
$vars->{'urlquerypart'} = $cgi->canonicalise_query('cmdtype');
if ($cgi->param('plan_id')){
my $plan_id = $cgi->param('plan_id');
my $plan = Bugzilla::Testopia::TestPlan->new($plan_id);
my @plan_ids = split(/[,]+/, $cgi->param('plan_id'));
if (scalar @plan_ids == 1){
my $plan = Bugzilla::Testopia::TestPlan->new($plan_ids[0]);
unless ($plan){
print $cgi->multipart_end if $serverpush;
ThrowUserError("invalid-test-id-non-existent",