From: Frédéric Buclin Date: Thu, 23 Sep 2010 18:43:51 +0000 (+0200) Subject: Bug 599023: importxml.pl fails if UNCONFIRMED is the single bug status allowed when... X-Git-Tag: bugzilla-4.0rc1~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95dd1b686c87b69dc485f856eb0db283eca40dc2;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;