Skip to content

Commit

Permalink
OrdenTandas: do not insert "Grado III" tandas on non-rsce contests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsito committed Jan 14, 2015
1 parent 2296ce7 commit 9cc6596
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions agility/server/database/classes/OrdenTandas.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ function insert_remove($rsce,$tipo,$orden,$oper) {
$orden = $this->removeFromList($orden,$item['ID']);
return $orden;
}
if( ($rsce!=0) && ($item['Grado']==='GIII') ) {
// remove every "Grado III" tandas on non RSCE contests
$orden = $this->removeFromList($orden,$item['ID']);
return $orden;
}
if ($oper==true) $orden = $this->insertIntoList($orden,$item['ID']);
else $orden = $this->removeFromList($orden,$item['ID']);
}
Expand Down

0 comments on commit 9cc6596

Please sign in to comment.