From 3fc27ceb04d8a83d561312a0f534d83522e191bb Mon Sep 17 00:00:00 2001 From: james Date: Thu, 20 Mar 2008 01:52:47 +0000 Subject: [PATCH] Set everything to do with the project number, project sort, and sequence numbers to null, not just the project number, when unregistering a project. --- admin/registration_receivedforms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/registration_receivedforms.php b/admin/registration_receivedforms.php index 8de602c..bbdf1d5 100644 --- a/admin/registration_receivedforms.php +++ b/admin/registration_receivedforms.php @@ -284,7 +284,7 @@ echo mysql_Error(); $reg_num=intval(trim($_GET['registration_number'])); $q=mysql_query("SELECT registrations.id AS reg_id, projects.id AS proj_id FROM projects,registrations WHERE projects.registrations_id=registrations.id AND registrations.year='{$config['FAIRYEAR']}' AND registrations.num='$reg_num'"); $r=mysql_fetch_object($q); - mysql_query("UPDATE projects SET projectnumber=null WHERE id='$r->proj_id' AND year='{$config['FAIRYEAR']}'"); + mysql_query("UPDATE projects SET projectnumber=null, projectsort=null, projectnumber_seq=null, projectsort_seq=null WHERE id='$r->proj_id' AND year='{$config['FAIRYEAR']}'"); mysql_query("UPDATE registrations SET status='open' WHERE id='$r->reg_id' AND year='{$config['FAIRYEAR']}'"); echo happy(i18n("Successfully unregistered project")); }