aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-13 12:43:11 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:47 +0200
commit293fe3d4ae42a39b2c45f783924b82db8259a50b (patch)
tree188f4519ea7603d1912c5ad9f530ccc63dde75bf /data/lib
parent83fd7fd92e5b21a177bc16cc7318792cf63a343b (diff)
downloadbugzilla-triage-293fe3d4ae42a39b2c45f783924b82db8259a50b.tar.gz
Don't run chip magic on already triaged bugs.
Fix #96 Signed-off-by: Matěj Cepl <mcepl@redhat.com>
Diffstat (limited to 'data/lib')
-rw-r--r--data/lib/otherButtons.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/data/lib/otherButtons.js b/data/lib/otherButtons.js
index 060ce16..12d0712 100644
--- a/data/lib/otherButtons.js
+++ b/data/lib/otherButtons.js
@@ -113,14 +113,16 @@ function addingEmbelishments(logList) {
}, false);
}
+ console.log("addingEmbelishments: isTriaged = " + isTriaged());
// TODO Get compiz bugs as well
- if ((new Boolean(constantData.chipNames)) && (list.length > 0)
+ if ((new Boolean(constantData.chipNames))
+ && (logList.length > 0) && (!isTriaged())
&& (!FillMagicDoneRE.test(getSummary()))
&& (maintCCAddr == "xgl-maint@redhat.com")) {
// Add find chip magic button
- fillInChipMagic(list[0][1]);
+ fillInChipMagic(logList[0][1]);
}
-
+
// Add links for creating new bug in the same product
// and same component
addNewLinks();