From 8240cb081019b781ea50e5cad84089754ad316c4 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 14 Jun 2007 21:30:30 +0000 Subject: Bug 345100: Remove obsolete parameters and "officially" turn on custom bug status workflow - Patch by Frédéric Buclin r=gerv a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Install/DB.pm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'Bugzilla/Install') diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 7dd5ad269..3991cd453 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -115,6 +115,7 @@ sub update_fielddefs_definition { # the purpose of a column. # sub update_table_definitions { + my $old_params = shift; my $dbh = Bugzilla->dbh; _update_pre_checksetup_bugzillas(); @@ -507,7 +508,7 @@ sub update_table_definitions { _fix_uppercase_index_names(); # 2007-05-17 LpSolit@gmail.com - Bug 344965 - _initialize_workflow(); + _initialize_workflow($old_params); ################################################################ # New --TABLE-- changes should go *** A B O V E *** this point # @@ -2779,6 +2780,7 @@ sub _fix_uppercase_index_names { } sub _initialize_workflow { + my $old_params = shift; my $dbh = Bugzilla->dbh; if (!$dbh->bz_column_info('bug_status', 'is_open')) { @@ -2809,16 +2811,16 @@ sub _initialize_workflow { my $count = $dbh->selectrow_array('SELECT COUNT(*) FROM status_workflow'); return if $count; - my $create = Bugzilla->params->{'commentoncreate'}; - my $confirm = Bugzilla->params->{'commentonconfirm'}; - my $accept = Bugzilla->params->{'commentonaccept'}; - my $resolve = Bugzilla->params->{'commentonresolve'}; - my $verify = Bugzilla->params->{'commentonverify'}; - my $close = Bugzilla->params->{'commentonclose'}; - my $reopen = Bugzilla->params->{'commentonreopen'}; + my $create = $old_params->{'commentoncreate'}; + my $confirm = $old_params->{'commentonconfirm'}; + my $accept = $old_params->{'commentonaccept'}; + my $resolve = $old_params->{'commentonresolve'}; + my $verify = $old_params->{'commentonverify'}; + my $close = $old_params->{'commentonclose'}; + my $reopen = $old_params->{'commentonreopen'}; # This was till recently the only way to get back to NEW for # confirmed bugs, so we use this parameter here. - my $reassign = Bugzilla->params->{'commentonreassign'}; + my $reassign = $old_params->{'commentonreassign'}; # This is the default workflow. my @workflow = ([undef, 'UNCONFIRMED', $create], -- cgit v1.2.3-24-g4f1b