summaryrefslogtreecommitdiffstats
path: root/extensions/UserProfile
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2014-02-10 06:06:27 +0100
committerDave Lawrence <dlawrence@mozilla.com>2014-02-10 06:06:27 +0100
commit55e336233dbd15d525b2f4717572b6ad6c010219 (patch)
treecf0edac1132b0d491a72fd0f561748c43a17c44e /extensions/UserProfile
parenta03987f1d0d7fe615b0c632cf2079b4c0a791a4a (diff)
downloadbugzilla-55e336233dbd15d525b2f4717572b6ad6c010219.tar.gz
bugzilla-55e336233dbd15d525b2f4717572b6ad6c010219.tar.xz
Bug 917878 - "patches submitted" and "patches reviewed" on the user profile don't take github pull requests into consideration
r=glob
Diffstat (limited to 'extensions/UserProfile')
-rw-r--r--extensions/UserProfile/lib/Util.pm4
1 files changed, 2 insertions, 2 deletions
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