From 958e1a758168b4908bcdd237518ab85b93d7e1bb Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 31 Dec 2009 12:37:48 +0000 Subject: Bug 519858 - Move uncommonly used parameters out of the "Required" section and into a "General" and "Advanced" section Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- Bugzilla/Install.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Bugzilla/Install.pm') diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm index a32063ca7..10804ab70 100644 --- a/Bugzilla/Install.pm +++ b/Bugzilla/Install.pm @@ -27,6 +27,7 @@ package Bugzilla::Install; use strict; use Bugzilla::Component; +use Bugzilla::Config qw(:admin); use Bugzilla::Constants; use Bugzilla::Error; use Bugzilla::Group; @@ -310,6 +311,12 @@ sub make_admin { $group_insert->execute($user->id, $editusers->id, 0, GRANT_DIRECT); }; + # If there is no maintainer set, make this user the maintainer. + if (!Bugzilla->params->{'maintainer'}) { + SetParam('maintainer', $user->email); + write_params(); + } + print "\n", get_text('install_admin_created', { user => $user }), "\n"; } -- cgit v1.2.3-24-g4f1b