forked from science-ation/science-ation
Fixed a bug that prevented students from logging back in to view their forms once the forms were marked as complete
This commit is contained in:
parent
1585fdb3e6
commit
06dae78992
@ -166,20 +166,24 @@
|
|||||||
students.email='".$_SESSION['email']."'
|
students.email='".$_SESSION['email']."'
|
||||||
AND students.year=".$config['FAIRYEAR']."
|
AND students.year=".$config['FAIRYEAR']."
|
||||||
AND registrations.year=".$config['FAIRYEAR']."
|
AND registrations.year=".$config['FAIRYEAR']."
|
||||||
AND registrations.status='open'
|
AND
|
||||||
|
( registrations.status='open'
|
||||||
|
OR registrations.status='paymentpending'
|
||||||
|
OR registrations.status='complete'
|
||||||
|
)
|
||||||
AND students.registrations_id=registrations.id");
|
AND students.registrations_id=registrations.id");
|
||||||
if(mysql_num_rows($q)>0)
|
if(mysql_num_rows($q)>0)
|
||||||
{
|
{
|
||||||
$r=mysql_fetch_object($q);
|
$r=mysql_fetch_object($q);
|
||||||
// print_r($r);
|
// print_r($r);
|
||||||
echo i18n("Please enter your <b>registration number</b> in order to continue your registration");
|
echo i18n("Please enter your <b>registration number</b> in order to login");
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"continue\">";
|
echo "<input type=\"hidden\" name=\"action\" value=\"continue\">";
|
||||||
$allownew=false;
|
$allownew=false;
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//they dont have a 'new' and they dont have an 'open' so that means that they want to create a new one... BUT...
|
//they dont have a 'new' and they dont have an 'open/paymentpending/complete' so that means that they want to create a new one... BUT...
|
||||||
|
|
||||||
if($config['participant_registration_type']=="invite")
|
if($config['participant_registration_type']=="invite")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user