forked from science-ation/science-ation
Start uploaded winners as "open", not "new", so if it's an upload for a
winner that needs to login, it won't create a new student for them, the student already exists.
This commit is contained in:
parent
d3c0746949
commit
96c3b65cd5
@ -237,7 +237,7 @@ function award_upload_assign(&$fair, &$award, &$prize, &$project, $year, &$respo
|
|||||||
|
|
||||||
//actually insert it
|
//actually insert it
|
||||||
mysql_query("INSERT INTO registrations (num,email,start,status,schools_id,year) VALUES (".
|
mysql_query("INSERT INTO registrations (num,email,start,status,schools_id,year) VALUES (".
|
||||||
"'$regnum','$regnum',NOW(),'new',NULL,'$year')");
|
"'$regnum','$regnum',NOW(),'open',NULL,'$year')");
|
||||||
$registrations_id = mysql_insert_id();
|
$registrations_id = mysql_insert_id();
|
||||||
/* We'll fill in the email address later */
|
/* We'll fill in the email address later */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user