From 55e336233dbd15d525b2f4717572b6ad6c010219 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Mon, 10 Feb 2014 05:06:27 +0000 Subject: Bug 917878 - "patches submitted" and "patches reviewed" on the user profile don't take github pull requests into consideration r=glob --- extensions/UserProfile/lib/Util.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/UserProfile') diff --git a/extensions/UserProfile/lib/Util.pm b/extensions/UserProfile/lib/Util.pm index 93313eee5..016c6d7e3 100644 --- a/extensions/UserProfile/lib/Util.pm +++ b/extensions/UserProfile/lib/Util.pm @@ -72,7 +72,7 @@ EOF SELECT COUNT(*) FROM attachments WHERE submitter_id = ? - AND ispatch = 1 + AND (ispatch = 1 OR mimetype = 'text/x-github-pull-request') EOF # patches reviewed @@ -81,7 +81,7 @@ EOF FROM flags INNER JOIN attachments ON attachments.attach_id = flags.attach_id WHERE setter_id = ? - AND attachments.ispatch = 1 + AND (attachments.ispatch = 1 OR attachments.mimetype = 'text/x-github-pull-request') AND status IN ('+', '-') EOF -- cgit v1.2.3-24-g4f1b