automatically select the same school as the first partner when added a second to a registration

This commit is contained in:
justin 2010-07-13 19:16:35 +00:00
parent 83c683063e
commit c877ce1f95

View File

@ -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
{