Skip deleting a distributions test results if there are no test results for the distribution
This commit is contained in:
@@ -157,10 +157,13 @@ class distribution {
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
// delete any test results this distribution has
|
// delete any test results this distribution has
|
||||||
foreach($this->aTestingIds as $iTestId)
|
if($this->aTestingIds)
|
||||||
{
|
{
|
||||||
$oTestData = new TestData($iTestId);
|
foreach($this->aTestingIds as $iTestId)
|
||||||
$oTestData->delete();
|
{
|
||||||
|
$oTestData = new TestData($iTestId);
|
||||||
|
$oTestData->delete();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// now delete the Distribution
|
// now delete the Distribution
|
||||||
|
|||||||
Reference in New Issue
Block a user