From 668565919fa8513e7e02d1bb8d1759fff10def8a Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 24 Jan 2007 03:56:46 +0000 Subject: [PATCH] - Make the age pulldown selection based on ages, not grades --- register_participants_students.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/register_participants_students.php b/register_participants_students.php index aaeb4a4..ffa8a36 100644 --- a/register_participants_students.php +++ b/register_participants_students.php @@ -319,8 +319,8 @@ if($config['participant_student_personal']=="yes") //the year selector should be based on the min/max grades possible //assume min age of 3 for grade=0 (kindergarden) //assume max age of 18 for grade=12 - $minyearselect=$config['FAIRYEAR'] - 6 - $config['maxgrade']; - $maxyearselect=$config['FAIRYEAR'] - 3 - $config['mingrade']; + $minyearselect=$config['FAIRYEAR'] - $config['maxage']; + $maxyearselect=$config['FAIRYEAR'] - $config['minage']; emit_year_selector("year[$x]",$year,$minyearselect,$maxyearselect); echo "".REQUIREDFIELD."\n"; echo "\n";