From: <guy...@us...> - 2004-01-06 23:48:19
|
Update of /cvsroot/outreach/opt/rt/req_delete In directory sc8-pr-cvs1:/tmp/cvs-serv8929/rt/req_delete Modified Files: index.php Log Message: When deleting a task, OPT now also deletes any associated cvs commit logs. Index: index.php =================================================================== RCS file: /cvsroot/outreach/opt/rt/req_delete/index.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index.php 20 Oct 2003 18:34:09 -0000 1.5 --- index.php 6 Jan 2004 23:48:16 -0000 1.6 *************** *** 246,249 **** --- 246,258 ---- $sql="delete from meeting2task where task=$task_id[$i]"; crm_run_query($sql); + $sql="select id from cvs_commits where task=$task_id[$i]"; + $res=crm_run_query($sql); + while ($row=OPT_fetch_row($res)) + { + $sql="delete from cvs_files where commit_id = $row[0]"; + crm_run_query($sql); + } + $sql="delete from cvs_commits where task=$task_id[$i]"; + } else |