diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-05-14 18:39:48 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-05-14 18:39:48 +0200 |
commit | 1774b91d91558e53a9ec635e4001f805c4a897a8 (patch) | |
tree | 890cdda083b30eb0d4e2a5faf8f79151844e3591 /extensions/MyDashboard/web | |
parent | e98d1090c0d9bda4d8c211061a8be6686b3e8eb8 (diff) | |
download | bugzilla-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')
-rw-r--r-- | extensions/MyDashboard/web/js/flags.js | 5 |
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) + |