Don't show deleted test results under Your Maintained Apps
This commit is contained in:
@@ -1083,10 +1083,12 @@ class testData{
|
|||||||
|
|
||||||
function getTestResultsForUser($iUserId, $iVersionId)
|
function getTestResultsForUser($iUserId, $iVersionId)
|
||||||
{
|
{
|
||||||
|
$oVersion = new version($iVersionId);
|
||||||
$hResult = query_parameters("SELECT * FROM testResults WHERE
|
$hResult = query_parameters("SELECT * FROM testResults WHERE
|
||||||
submitterId = '?'
|
submitterId = '?'
|
||||||
AND versionId = '?'
|
AND versionId = '?'
|
||||||
ORDER BY testingId DESC", $iUserId, $iVersionId);
|
AND state = '?'
|
||||||
|
ORDER BY testingId DESC", $iUserId, $iVersionId, $oVersion->objectGetState());
|
||||||
|
|
||||||
if(!$hResult)
|
if(!$hResult)
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user