Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/functions/testcase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ function get_linked_versions($id,$filters=null,$options=null)
tcversions
nodes from hierarchy
testcase_script_links

platforms
*/
function _blind_delete($id,$version_id=self::ALL_VERSIONS,$children=null) {
$debugMsg = 'Class:' . __CLASS__ . ' - Method: ' . __FUNCTION__;
Expand Down Expand Up @@ -1781,12 +1781,16 @@ function _blind_delete($id,$version_id=self::ALL_VERSIONS,$children=null) {
WHERE testcase_id = {$id}
AND tcversion_id IN ({$tcversion_list})";

$sql[]="/* $debugMsg */
DELETE FROM {$this->tables['testcase_platforms']}
WHERE testcase_id = {$id}
AND tcversion_id IN ({$tcversion_list})";

$sql[]="/* $debugMsg */
DELETE FROM {$this->tables['req_coverage']}
WHERE testcase_id = {$id}
AND tcversion_id IN ({$tcversion_list})";


// This has to be the last, to avoid FK issues
$sql[]="/* $debugMsg */
DELETE FROM {$this->tables['tcversions']}
Expand Down