Bug 352608: Make checksetup more localizable
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=myk git-svn-id: svn://10.0.0.236/trunk@211644 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -338,7 +338,11 @@ sub switch_to_main_db {
|
||||
sub get_fields {
|
||||
my $class = shift;
|
||||
my $criteria = shift;
|
||||
return @{Bugzilla::Field->match($criteria)};
|
||||
# This function may be called during installation, and Field::match
|
||||
# may fail at that time. so we want to return an empty list in that
|
||||
# case.
|
||||
my $fields = eval { Bugzilla::Field->match($criteria) } || [];
|
||||
return @$fields;
|
||||
}
|
||||
|
||||
sub custom_field_names {
|
||||
|
||||
Reference in New Issue
Block a user