[AppDB] Fix deletion of test results when version is deleted
Tony Lambregts
tony.lambregts at gmail.com
Sun Feb 19 08:48:50 CST 2006
When a version was deleted its test results were not deleted as well leaving
orphan test results. This patch fixes that.
Change Log: Fix deletion of test results when version is deleted
Files Changed: include/version.php admin/deleteAny.php
-------------- next part --------------
Index: include/version.php
===================================================================
RCS file: /home/wine/appdb/include/version.php,v
retrieving revision 1.47
diff -u -u -r1.47 version.php
--- include/version.php 29 Jan 2006 04:04:46 -0000 1.47
+++ include/version.php 19 Feb 2006 14:22:44 -0000
@@ -148,10 +148,11 @@
$this->aTestingIds[] = $oRow->testingId;
}
}
+
/*
* We fetch monitor Ids.
*/
- $this->aTestingIds = array();
+ $this->aMonitorIds = array();
$sQuery = "SELECT *
FROM appMonitors
WHERE versionId = ".$iVersionId."
Index: admin/deleteAny.php
===================================================================
RCS file: /home/wine/appdb/admin/deleteAny.php,v
retrieving revision 1.15
diff -u -u -r1.15 deleteAny.php
--- admin/deleteAny.php 29 Oct 2005 04:41:10 -0000 1.15
+++ admin/deleteAny.php 19 Feb 2006 14:22:44 -0000
@@ -12,6 +12,7 @@
require_once(BASE."include/application.php");
require_once(BASE."include/mail.php");
require_once(BASE."include/monitor.php");
+require_once(BASE."include/testResults.php");
if($_REQUEST['confirmed'] != "yes")
More information about the wine-patches
mailing list