[AppDB] Do not show preview button on new, unqueued test reports

Rosanne DiMesio dimesio at earthlink.net
Wed Jul 12 10:07:02 CDT 2017


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 at earthlink.net>
---
 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()
-- 
2.12.3




More information about the wine-patches mailing list