From: Frédéric Buclin Date: Thu, 23 Sep 2010 18:45:46 +0000 (+0200) Subject: Bug 599023: importxml.pl fails if UNCONFIRMED is the single bug status allowed when... X-Git-Tag: bugzilla-3.6.3~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8a62b23566b1137b707ab9dbf7744c381dec49d;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 1a61c5eade..3c342aa6ce 100755 --- a/importxml.pl +++ b/importxml.pl @@ -942,7 +942,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;