Skip to content

Commit

Permalink
delete(): check on node type added
Browse files Browse the repository at this point in the history
  • Loading branch information
fmancardi committed Jun 13, 2015
1 parent 566c873 commit ae192de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/functions/testplan.class.php
Expand Up @@ -1855,7 +1855,9 @@ function delete($id)

// Finally delete from main table
$main_sql[]="DELETE FROM {$this->tables['testplans']} WHERE id={$id}";
$main_sql[]="DELETE FROM {$this->tables['nodes_hierarchy']} WHERE id={$id}";
$main_sql[]="DELETE FROM {$this->tables['nodes_hierarchy']} " .
"WHERE id={$id} AND node_type_id=" .
$this->node_types_descr_id['testplan'];

foreach($main_sql as $sql)
{
Expand Down

0 comments on commit ae192de

Please sign in to comment.