forked from science-ation/science-ation
Replace "Sex" with "Gender", and allow the db field to be null, instead of defaulting to "male"
BUG#105
This commit is contained in:
parent
0987d76e43
commit
050f2093fb
@ -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";
|
||||
|
@ -1 +1 @@
|
||||
22
|
||||
23
|
||||
|
1
db/db.update.23.sql
Normal file
1
db/db.update.23.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER TABLE `students` CHANGE `sex` `sex` ENUM( 'male', 'female' ) NULL DEFAULT NULL;
|
@ -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="";
|
||||
|
Loading…
x
Reference in New Issue
Block a user