Bug 264192: Fix search where BugsThisDependsOn or OtherBugsDependingOnThis is empty

Patch by Joel Peshkin <bugreport@peshkin.net> r=mkanat, a=myk
This commit is contained in:
bugreport%peshkin.net 2005-02-25 03:40:03 +00:00
Родитель 3f3a650954
Коммит 6551d2d054
1 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -881,20 +881,24 @@ sub init {
"^dependson,(?!changed)" => sub {
my $table = "dependson_" . $chartid;
push(@supptables, "dependencies $table");
$ff = "$table.$f";
my $ref = $funcsbykey{",$t"};
&$ref;
push(@wherepart, "$table.blocked = bugs.bug_id");
push(@supptables, "LEFT JOIN dependencies $table " .
"ON $table.blocked = bugs.bug_id " .
"AND ($term)");
$term = "$ff IS NOT NULL";
},
"^blocked,(?!changed)" => sub {
my $table = "blocked_" . $chartid;
push(@supptables, "dependencies $table");
$ff = "$table.$f";
my $ref = $funcsbykey{",$t"};
&$ref;
push(@wherepart, "$table.dependson = bugs.bug_id");
push(@supptables, "LEFT JOIN dependencies $table " .
"ON $table.dependson = bugs.bug_id " .
"AND ($term)");
$term = "$ff IS NOT NULL";
},
"^alias,(?!changed)" => sub {