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;
|
||||
|
||||
// delete any test results this distribution has
|
||||
foreach($this->aTestingIds as $iTestId)
|
||||
if($this->aTestingIds)
|
||||
{
|
||||
$oTestData = new TestData($iTestId);
|
||||
$oTestData->delete();
|
||||
foreach($this->aTestingIds as $iTestId)
|
||||
{
|
||||
$oTestData = new TestData($iTestId);
|
||||
$oTestData->delete();
|
||||
}
|
||||
}
|
||||
|
||||
// now delete the Distribution
|
||||
|
||||
Reference in New Issue
Block a user