forked from science-ation/science-ation
Since the previous bug where judge complete status was wrong, we need a chance to recalculate them all, so lets just do it here for now.
This commit is contained in:
parent
59da6152dd
commit
7e6795fd0d
@ -24,6 +24,7 @@
|
||||
<?
|
||||
require_once('../common.inc.php');
|
||||
require_once('../user.inc.php');
|
||||
require_once('../judge.inc.php');
|
||||
user_auth_required('committee', 'admin');
|
||||
|
||||
require_once('judges.inc.php');
|
||||
@ -222,6 +223,16 @@ function neweditor()
|
||||
$completeno=0;
|
||||
while($r=mysql_fetch_assoc($q))
|
||||
{
|
||||
//JAMES - TEMP - due to the previous error with improperly setting judge status to NOT complete when special awards was turned off
|
||||
//we now need to make sure we re-calculate all the judge statuses somehow, so might as well do it here.
|
||||
//FIXME: remove this after all the fairs are done this year SUMMER 2010
|
||||
if(in_array('judge',$show_types)){
|
||||
$u=user_load_by_uid($r['uid']);
|
||||
|
||||
//we also set teh $r array so it displays properly on first load
|
||||
if(judge_status_update($u)=="complete")
|
||||
$r['judge_complete']='yes';
|
||||
}
|
||||
$types = split(',', $r['types']);
|
||||
$span = count($types) > 1 ? "rowspan=\"".count($types)."\"" : '';
|
||||
echo "<tr><td $span>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user