Module: appdb
Branch: master
Commit: ad993f6e0284f986ffbed65b5afbbcdec0688246
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=ad993f6e0284f986ffbed65b…
Author: Rosanne DiMesio <dimesio(a)earthlink.net>
Date: Wed Jul 12 10:07:02 2017 -0500
Do not show preview button on new, unqueued test reports
Preview can display incorrect or missing information when run
on test reports that have not yet been submitted/queued.
Signed-off-by: Rosanne DiMesio <dimesio(a)earthlink.net>
Signed-off-by: Jeremy Newman <jnewman(a)codeweavers.com>
---
include/testData_queue.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/testData_queue.php b/include/testData_queue.php
index 0877535..23a09a4 100644
--- a/include/testData_queue.php
+++ b/include/testData_queue.php
@@ -180,7 +180,10 @@ class testData_queue
function objectShowPreview()
{
- return $this->oTestData->objectShowPreview();
+ if(!$this->oTestData->iTestingId)
+ return FALSE;
+ else
+ return $this->oTestData->objectShowPreview();
}
function display()