Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
0ee74224
Commit
0ee74224
authored
Aug 24, 2016
by
Frank Becker
Committed by
Dylan William Hardison
Aug 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1296831 - allow answers file to override new install defaults
parent
4da9ab13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Config.pm
Bugzilla/Config.pm
+9
-5
No files found.
Bugzilla/Config.pm
View file @
0ee74224
...
...
@@ -36,6 +36,12 @@ use File::Basename;
);
Exporter::
export_ok_tags
(
'admin'
);
# new installs get these set of defaults (unless overriden by the answers file)
my
%
NEW_INSTALL_DEFAULT
=
(
or_groups
=>
1
,
use_email_as_login
=>
0
,
);
# INITIALISATION CODE
# Perl throws a warning if we use bz_locations() directly after do.
our
%
params
;
...
...
@@ -238,17 +244,15 @@ sub update_params {
elsif
(
exists
$answer
->
{
$name
})
{
$param
->
{
$name
}
=
$answer
->
{
$name
};
}
elsif
(
$new_install
and
exists
$NEW_INSTALL_DEFAULT
{
$name
})
{
$param
->
{
$name
}
=
$NEW_INSTALL_DEFAULT
{
$name
};
}
else
{
$param
->
{
$name
}
=
$item
->
{
'default'
};
}
}
}
if
(
$new_install
)
{
$param
->
{
'or_groups'
}
=
1
;
$param
->
{
'use_email_as_login'
}
=
0
;
}
# --- REMOVE OLD PARAMS ---
my
%
oldparams
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment