From 9cc6596d566a77c98afec01ba46f428faad11b8b Mon Sep 17 00:00:00 2001 From: Juan Antonio Martinez Date: Wed, 14 Jan 2015 11:17:29 +0100 Subject: [PATCH] OrdenTandas: do not insert "Grado III" tandas on non-rsce contests --- agility/server/database/classes/OrdenTandas.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/agility/server/database/classes/OrdenTandas.php b/agility/server/database/classes/OrdenTandas.php index fce2cbae4..e1ec154f4 100644 --- a/agility/server/database/classes/OrdenTandas.php +++ b/agility/server/database/classes/OrdenTandas.php @@ -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']); }