forked from science-ation/science-ation
automatically select the same school as the first partner when added a second to a registration
This commit is contained in:
parent
83c683063e
commit
c877ce1f95
@ -430,11 +430,12 @@ if($config['participant_student_personal']=="yes")
|
||||
echo "<option value=\"\">".i18n("Choose School")."</option>\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 "<option $sel value=\"$r->id\">".htmlspecialchars($r->city).' - '.htmlspecialchars($r->school)."</option>\n";
|
||||
|
||||
}
|
||||
echo "</select>".REQUIREDFIELD;
|
||||
$lastSchool = $studentinfo->schools_id;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user