diff --git a/participant.inc.php b/participant.inc.php index 2b765b1..e24fcbe 100644 --- a/participant.inc.php +++ b/participant.inc.php @@ -23,6 +23,7 @@ ?> $req=="0000-00-00" || !$r->$req) return "incomplete"; } else { - if(!$r->$req) + if(!$r->$req) { + $fp=fopen("data/logs/incomplete.log","a+"); + $str="user id $userid incomplete on required field: $req, user[$req]='{$r->$req}'\n"; +// echo $str; + fputs($fp,$str); + fclose($fp); return "incomplete"; + } } } return 'complete'; @@ -331,24 +336,24 @@ function participant_status_completion_details($u,$regId=null){ if(!$regId){ return array( 'namecheck' => 'incomplete', + 'students' => 'incomplete', 'tour' => 'incomplete', 'spaward' => 'incomplete', 'safety' => 'incomplete', 'mentor' => 'incomplete', 'project' => 'incomplete', 'emergencycontact' => 'incomplete', - 'students' => 'incomplete' ); } return array( 'namecheck' => namecheckStatus($regId), + 'students' => studentsStatus($regId), 'tour' => tourStatus($regId), 'spaward' => spawardStatus($regId), 'safety' => safetyStatus($regId), 'mentor' => mentorStatus($regId), 'project' => projectStatus($regId), 'emergencycontact' => emergencycontactStatus($regId), - 'students' => studentsStatus($regId) ); } diff --git a/testapi.php b/testapi.php index 3404f2b..4b147eb 100644 --- a/testapi.php +++ b/testapi.php @@ -54,6 +54,7 @@ include "common.inc.php"; window.location.href='api/dates/'+o.value; return false; } +