b=322585
- fail when no results are actually submitted - grab product info from testgroup if necessary git-svn-id: svn://10.0.0.236/trunk@199019 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -181,10 +181,19 @@ foreach my $curtestid (@tests) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (! $testcount) {
|
||||
invalidInputError("No results submitted.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
my $testgroup;
|
||||
if ($c->param("testgroup")) {
|
||||
$testgroup = Litmus::DB::Testgroup->retrieve($c->param("testgroup")),
|
||||
$testgroup = Litmus::DB::Testgroup->retrieve($c->param("testgroup"));
|
||||
if (! $product) {
|
||||
$product = $testgroup->product();
|
||||
}
|
||||
}
|
||||
|
||||
my $vars;
|
||||
|
||||
Reference in New Issue
Block a user