Bug 74768

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1198 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2011-01-26 16:56:34 +00:00
parent 18114ea7b5
commit 314acfa3a6
1 changed files with 3 additions and 2 deletions

View File

@ -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;