зеркало из https://github.com/mozilla/pjs.git
b=322585
- fail when no results are actually submitted - grab product info from testgroup if necessary
This commit is contained in:
Родитель
f4eb1297e2
Коммит
47bdd84ef7
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче