From 314acfa3a6c7ce73fb316fdff5e56151da2391af Mon Sep 17 00:00:00 2001 From: vfilippov Date: Wed, 26 Jan 2011 16:56:34 +0000 Subject: [PATCH] Bug 74768 git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1198 6955db30-a419-402b-8a0d-67ecbb4d7f56 --- Bugzilla/Bug.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 995dd2bc7..251a9ca72 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1457,7 +1457,8 @@ sub _check_comment_type { return $type; } -sub _check_component { +sub _check_component +{ my ($invocant, $name, $product) = @_; $name = trim($name); $name || ThrowUserError("require_component"); @@ -1966,7 +1967,7 @@ sub _check_version my ($invocant, $version, $product) = @_; $version = trim($version); ($product = $invocant->product_obj) if ref $invocant; - my $object = Bugzilla::Version->new({ product => $product, name => $version }); + my $object = Bugzilla::Version->new({ product => $product, name => $version }) if length $version; if (!$object) { $invocant->dependent_validators->{version} = $version;