From 2d6257715e5808bec6489b92d1d880d1908ffbca Mon Sep 17 00:00:00 2001 From: james Date: Wed, 21 Feb 2007 20:42:48 +0000 Subject: [PATCH] Fix text on one configuration variable Fix judge manager to keep the 'show_what' persistent when performing other actions on the table (editing, sorting, etc). --- admin/judges_manager.php | 16 ++++++++++------ db/db.code.version.txt | 2 +- db/db.update.43.sql | 1 + 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 db/db.update.43.sql diff --git a/admin/judges_manager.php b/admin/judges_manager.php index 551a6850..48097737 100644 --- a/admin/judges_manager.php +++ b/admin/judges_manager.php @@ -53,23 +53,27 @@ function openjudgeinfo(id) $icon_exitension = $config['icon_extension']; print("

"); - if(isset($_POST['show_what'])) { - $show_what = $_POST['show_what']; + if(isset($_GET['show_what'])) { + $_SESSION['judgesmanager_show_what']=$_GET['show_what']; + } + if($_SESSION['judgesmanager_show_what']) { + $show_what = $_SESSION['judgesmanager_show_what']; } else { $show_what = "cy_complete"; } - print("
"); + print(""); print(""); print(""); print("
"); + echo i18n("Note: Deleting a judge from this screen only unlinks them from the current fairyear"); $editor = new TableEditor('judge'); diff --git a/db/db.code.version.txt b/db/db.code.version.txt index d81cc071..920a1396 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -42 +43 diff --git a/db/db.update.43.sql b/db/db.update.43.sql new file mode 100644 index 00000000..6ad3375c --- /dev/null +++ b/db/db.update.43.sql @@ -0,0 +1 @@ +UPDATE `config` SET `description` = 'The status a project must have to be considered eligible for judge scheduling. ' WHERE `var` = 'project_status' ;