Index: openacs-4/packages/bug-tracker/sql/postgresql/upgrade-1.4d5-1.4d6.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/bug-tracker/sql/postgresql/upgrade-1.4d5-1.4d6.sql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/bug-tracker/sql/postgresql/upgrade-1.4d5-1.4d6.sql	26 Jun 2008 23:55:30 -0000	1.2
+++ openacs-4/packages/bug-tracker/sql/postgresql/upgrade-1.4d5-1.4d6.sql	27 Jun 2008 00:03:49 -0000	1.3
@@ -20,7 +20,7 @@
     from   bt_projects
     where  project_id = p_project_id;
 
-    if workflow_id is not null then
+    if v_workflow_id is not null then
       perform workflow__delete(v_workflow_id);
     end if;
 
