Add judge completesections

Fix typo in participant page
This commit is contained in:
james 2011-03-03 16:34:22 +00:00
parent bca687a50e
commit 9b1e3fa964
2 changed files with 12 additions and 2 deletions

View File

@ -112,6 +112,16 @@ function judge_status_special_awards(&$u)
return 'incomplete';
}
function judge_status_completion_details(&$u) {
$ret=array();
$ret['personal']=user_personal_info_status($u);
$ret['expertise']=judge_status_expertise($u);
$ret['other']=judge_status_other($u);
$ret['availability']=judge_status_availability($u);
$ret['specialawards']=judge_status_special_awards($u);
return $ret;
}
function judge_status_update(&$u)
{
if( user_personal_info_status($u) == 'complete'
@ -122,7 +132,7 @@ function judge_status_update(&$u)
$u['roles']['judge']['complete'] = 'yes';
else
$u['roles']['judge']['complete'] = 'no';
$u['roles']['judge']['completesections']=judge_status_completion_details($u);
return ($u['roles']['judge']['complete'] == 'yes') ? 'complete' : 'incomplete';
}

View File

@ -355,7 +355,7 @@ function participant_status_completion_details($u,$regId=null){
function participant_status_update(&$u){
//for the 'role' participant to be complete, all we need is that ONE CURRENT students personal details to be complete
//this doesnt mean that their registration is complete though.
$complete=studentIndividualStatus($u['id']) {
$complete=studentIndividualStatus($u['id']);
$u['roles']['participant']['complete'] = $complete;
return $complete;
}