Bug 86642 - Fix (blocked|dependson) == ""

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1431 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2011-10-14 16:44:53 +00:00
parent 2eaae5f68e
commit 5884ba9964
1 changed files with 12 additions and 1 deletions

View File

@ -1953,11 +1953,22 @@ sub _blocked_dependson
my $t = "dep_".$self->{sequence};
my $other = ($self->{field} eq 'blocked' ? 'dependson' : 'blocked');
$self->{fieldsql} = $self->{field} = $t.'.'.$self->{field};
$self->call_op;
my $neg = 0;
if ($self->{value} eq '' &&
($self->{type} eq 'equals' || $self->{type} eq 'anyexact'))
{
$self->{term} = '1';
$neg = 1;
}
else
{
$self->call_op;
}
$self->{term} = {
table => "dependencies $t",
where => $self->{term},
bugid_field => $t.'.'.$other,
neg => $neg,
};
}