summaryrefslogtreecommitdiffstats
path: root/showdependencytree.cgi
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-04-05 06:52:03 +0200
committermkanat%kerio.com <>2005-04-05 06:52:03 +0200
commitf5f31fc070588c2075dd13a0fbabe8117e3aad76 (patch)
tree4a3bb48995143c84fcb8f222b420814e1c6e8eaf /showdependencytree.cgi
parentd71d64d9372f1556cec96434179b4cb1f9668e92 (diff)
downloadbugzilla-f5f31fc070588c2075dd13a0fbabe8117e3aad76.tar.gz
bugzilla-f5f31fc070588c2075dd13a0fbabe8117e3aad76.tar.xz
Bug 286235: Implicit joins should be replaced by explicit joins - installment A
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=joel, a=myk
Diffstat (limited to 'showdependencytree.cgi')
-rwxr-xr-xshowdependencytree.cgi21
1 files changed, 11 insertions, 10 deletions
diff --git a/showdependencytree.cgi b/showdependencytree.cgi
index b373563c1..76ef0ddee 100755
--- a/showdependencytree.cgi
+++ b/showdependencytree.cgi
@@ -149,16 +149,17 @@ sub GetBug {
my $bug = {};
if (Bugzilla->user->can_see_bug($id)) {
SendSQL("SELECT 1,
- bug_status,
- short_desc,
- $milestone_column,
- assignee.userid,
- assignee.login_name
- FROM bugs, profiles AS assignee
- WHERE bugs.bug_id = $id
- AND bugs.assigned_to = assignee.userid");
-
-
+ bug_status,
+ short_desc,
+ $milestone_column,
+ assignee.userid,
+ assignee.login_name
+ FROM bugs
+ INNER JOIN profiles AS assignee
+ ON bugs.assigned_to = assignee.userid
+ WHERE bugs.bug_id = $id");
+
+
($bug->{'exists'},
$bug->{'status'},
$bug->{'summary'},