summaryrefslogtreecommitdiff
path: root/perl-lib/PgCommitFest/Patch.pm
diff options
context:
space:
mode:
authorRobert Haas2009-12-03 02:58:44 +0000
committerRobert Haas2009-12-03 02:58:44 +0000
commit0a2f1259fdb07d68020d0eca5a165825ff73f0b5 (patch)
tree2c94182699e6f411ee0997debd5c7e115edbe5ff /perl-lib/PgCommitFest/Patch.pm
parentc7a94d40a473938a29609ab80484881b5e553935 (diff)
Add "Committer" field to patch form.
Diffstat (limited to 'perl-lib/PgCommitFest/Patch.pm')
-rw-r--r--perl-lib/PgCommitFest/Patch.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-lib/PgCommitFest/Patch.pm b/perl-lib/PgCommitFest/Patch.pm
index d22633a..f8c311a 100644
--- a/perl-lib/PgCommitFest/Patch.pm
+++ b/perl-lib/PgCommitFest/Patch.pm
@@ -74,7 +74,7 @@ sub form {
$r->set_title('Edit Patch');
$d = $r->db->select_one(<<EOM, $id);
SELECT id, commitfest_topic_id AS commitfest_topic, commitfest_id, name,
- patch_status_id AS patch_status, author, reviewers, date_closed
+ patch_status_id AS patch_status, author, reviewers, committer, date_closed
FROM patch_view WHERE id = ?
EOM
$r->error_exit('Patch not found.') if !defined $d;
@@ -113,6 +113,7 @@ SELECT id, name FROM patch_status ORDER BY id
EOM
$r->add_control('author', 'text', 'Author', 'required' => 1);
$r->add_control('reviewers', 'text', 'Reviewers');
+ $r->add_control('committer', 'text', 'Committer');
$r->add_control('date_closed', 'date', 'Date Closed');
if (!defined $id) {
$r->add_control('message_id', 'text',
@@ -172,7 +173,7 @@ sub view {
my $id = $r->cgi_id();
my $d = $r->db->select_one(<<EOM, $id) if defined $id;
SELECT id, name, commitfest_id, commitfest, commitfest_topic_id,
- commitfest_topic, patch_status, author, reviewers, date_closed
+ commitfest_topic, patch_status, author, reviewers, committer, date_closed
FROM patch_view WHERE id = ?
EOM
$r->error_exit('Patch not found.') if !defined $d;