Replace "Sex" with "Gender", and allow the db field to be null, instead of defaulting to "male"

BUG#105
This commit is contained in:
james 2006-09-04 16:28:28 +00:00
parent 0987d76e43
commit 050f2093fb
4 changed files with 4 additions and 3 deletions

View File

@ -52,7 +52,7 @@
echo "</tr>\n";
echo "<tr>\n";
echo " <th>".i18n("Grade")."</th><td>$studentinfo->grade</td>\n";
echo " <th>".i18n("Sex")."</th><td>$studentinfo->sex</td>\n";
echo " <th>".i18n("Gender")."</th><td>$studentinfo->sex</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <th>".i18n("Email Address")."</th><td>$studentinfo->email</td>\n";

View File

@ -1 +1 @@
22
23

1
db/db.update.23.sql Normal file
View File

@ -0,0 +1 @@
ALTER TABLE `students` CHANGE `sex` `sex` ENUM( 'male', 'female' ) NULL DEFAULT NULL;

View File

@ -267,7 +267,7 @@ else if($newstatus=="complete")
if($config['participant_student_personal']=="yes")
{
echo "<tr>\n";
echo " <td>".i18n("Sex")."</td><td>";
echo " <td>".i18n("Gender")."</td><td>";
echo "<select name=\"sex[$x]\">";
echo "<option value=\"\">".i18n("Select")."</option>\n";
if($studentinfo->sex=="male") $sel="selected=\"selected\""; else $sel="";