Rerun
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 10 Jan 2010 09:59:27 +0000 (09:59 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 10 Jan 2010 09:59:27 +0000 (09:59 +0000)
admin/fiscalyears.php

index 4d3f87f0741a9ba7d18cc0e177c006f23a41ffae..b507abbac7a085cb0e05852f1e1c915d71766162 100644 (file)
@@ -204,6 +204,8 @@ function delete_attachments_and_comments($type_no, $trans_no)
        }       
        $sql = "DELETE FROM ".TB_PREF."comments WHERE  type = $type_no AND id = $trans_no";
        db_query($sql, "Could not delete comments");
+       $sql = "DELETE FROM ".TB_PREF."refs WHERE  type = $type_no AND id = $trans_no";
+       db_query($sql, "Could not delete refs");
 }      
 
 function delete_this_fiscalyear($selected_id)