From: Frédéric Buclin Date: Thu, 23 Sep 2010 18:42:19 +0000 (+0200) Subject: Bug 599023: importxml.pl fails if UNCONFIRMED is the single bug status allowed when... X-Git-Tag: bugzilla-4.1.1~265 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46681b3ff9da9dae48d6b7b4d82a40ad2e476587;p=thirdparty%2Fbugzilla.git Bug 599023: importxml.pl fails if UNCONFIRMED is the single bug status allowed when reporting a new bug r=ghendricks a=LpSolit --- diff --git a/importxml.pl b/importxml.pl index 142470906d..350bf80c04 100755 --- a/importxml.pl +++ b/importxml.pl @@ -919,7 +919,7 @@ sub process_bug { $initial_status = $bug_statuses[0]->name; } else { - @bug_statuses = @{Bugzilla::Status->get_all()}; + @bug_statuses = Bugzilla::Status->get_all(); # Exclude UNCO and inactive bug statuses. @bug_statuses = grep { $_->is_active && $_->name ne 'UNCONFIRMED'} @bug_statuses; my @open_statuses = grep { $_->is_open } @bug_statuses;