From c877ce1f950fae4a2ef61e9f72513eab5ab0d119 Mon Sep 17 00:00:00 2001 From: justin Date: Tue, 13 Jul 2010 19:16:35 +0000 Subject: [PATCH] automatically select the same school as the first partner when added a second to a registration --- register_participants_students.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/register_participants_students.php b/register_participants_students.php index 9bdeef05..7bb4a080 100644 --- a/register_participants_students.php +++ b/register_participants_students.php @@ -430,11 +430,12 @@ if($config['participant_student_personal']=="yes") echo "\n"; while($r=mysql_fetch_object($schoolq)) { - if($studentinfo->schools_id==$r->id) $sel="selected=\"selected\""; else $sel=""; + if($studentinfo->schools_id==$r->id || $lastSchool ==$r->id) $sel="selected=\"selected\""; else $sel=""; echo "\n"; } echo "".REQUIREDFIELD; + $lastSchool = $studentinfo->schools_id; } else {