From 050f2093fbd87947db095185317a447670947ab1 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 4 Sep 2006 16:28:28 +0000 Subject: [PATCH] Replace "Sex" with "Gender", and allow the db field to be null, instead of defaulting to "male" BUG#105 --- admin/students_info.php | 2 +- db/db.code.version.txt | 2 +- db/db.update.23.sql | 1 + register_participants_students.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 db/db.update.23.sql diff --git a/admin/students_info.php b/admin/students_info.php index 9bc1389b..b95170b4 100644 --- a/admin/students_info.php +++ b/admin/students_info.php @@ -52,7 +52,7 @@ echo "\n"; echo "\n"; echo " ".i18n("Grade")."$studentinfo->grade\n"; - echo " ".i18n("Sex")."$studentinfo->sex\n"; + echo " ".i18n("Gender")."$studentinfo->sex\n"; echo "\n"; echo "\n"; echo " ".i18n("Email Address")."$studentinfo->email\n"; diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 2bd5a0a9..40994076 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -22 +23 diff --git a/db/db.update.23.sql b/db/db.update.23.sql new file mode 100644 index 00000000..fcf062eb --- /dev/null +++ b/db/db.update.23.sql @@ -0,0 +1 @@ +ALTER TABLE `students` CHANGE `sex` `sex` ENUM( 'male', 'female' ) NULL DEFAULT NULL; diff --git a/register_participants_students.php b/register_participants_students.php index e44eb71e..c918c351 100644 --- a/register_participants_students.php +++ b/register_participants_students.php @@ -267,7 +267,7 @@ else if($newstatus=="complete") if($config['participant_student_personal']=="yes") { echo "\n"; - echo " ".i18n("Sex").""; + echo " ".i18n("Gender").""; echo "