summaryrefslogtreecommitdiffstats
path: root/extensions/MyDashboard/web/js
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-05-14 18:39:48 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-05-14 18:39:48 +0200
commit1774b91d91558e53a9ec635e4001f805c4a897a8 (patch)
tree890cdda083b30eb0d4e2a5faf8f79151844e3591 /extensions/MyDashboard/web/js
parente98d1090c0d9bda4d8c211061a8be6686b3e8eb8 (diff)
downloadbugzilla-1774b91d91558e53a9ec635e4001f805c4a897a8.tar.gz
bugzilla-1774b91d91558e53a9ec635e4001f805c4a897a8.tar.xz
Bug 872022 - don't link a review flag to splinter unless the attachment is a patch
Diffstat (limited to 'extensions/MyDashboard/web/js')
-rw-r--r--extensions/MyDashboard/web/js/flags.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/MyDashboard/web/js/flags.js b/extensions/MyDashboard/web/js/flags.js
index 9c4da50dc..2498ba8ae 100644
--- a/extensions/MyDashboard/web/js/flags.js
+++ b/extensions/MyDashboard/web/js/flags.js
@@ -93,7 +93,10 @@ YUI({
};
var flagNameFormatter = function (o) {
- if (o.data.attach_id && o.data.is_patch && MyDashboard.splinter_base) {
+ if (parseInt(o.data.attach_id)
+ && parseInt(o.data.is_patch)
+ && MyDashboard.splinter_base)
+ {
return '<a href="' + MyDashboard.splinter_base +
(MyDashboard.splinter_base.indexOf('?') == -1 ? '?' : '&') +
'bug=' + encodeURIComponent(o.data.bug_id) +