diff options
Diffstat (limited to 'bug_form.pl')
-rw-r--r-- | bug_form.pl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bug_form.pl b/bug_form.pl index fcd33a7a1..a9daf8932 100644 --- a/bug_form.pl +++ b/bug_form.pl @@ -321,11 +321,8 @@ sub EmitDependList { my ($desc, $myfield, $targetfield) = (@_); print "<th align=right>$desc:</th><td>"; my @list; - SendSQL("select dependencies.$targetfield - from dependencies, bugs - where dependencies.$myfield = $id - and bugs.bug_id = dependencies.$targetfield - order by dependencies.$targetfield"); + SendSQL("select $targetfield from dependencies where + $myfield = $id order by $targetfield"); while (MoreSQLData()) { my ($i) = (FetchSQLData()); push(@list, $i); |