diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-22 04:57:30 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-06-05 14:46:49 +0200 |
commit | 2a04c3fc60e4f9cd8b59cbe6bcfbd56d0e29c98f (patch) | |
tree | 7710cf2dc8ca319bf995859babc45fa797c042b2 /data/lib/otherButtons.js | |
parent | fe02d1337e9f4377b381f311efb8224a50ef8903 (diff) | |
download | bugzilla-triage-2a04c3fc60e4f9cd8b59cbe6bcfbd56d0e29c98f.tar.gz |
Fixed other functions broken
* not all functions are able to accept the null as return value (directly
or indirectly) of filterByRegexp
* finally make all logic not to affect components which shouldn't be
bothered with the test.
Diffstat (limited to 'data/lib/otherButtons.js')
-rw-r--r-- | data/lib/otherButtons.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/lib/otherButtons.js b/data/lib/otherButtons.js index 1cca24b..2f93ea7 100644 --- a/data/lib/otherButtons.js +++ b/data/lib/otherButtons.js @@ -33,7 +33,7 @@ function collectComments () { */ function getDefaultAssignee() { return filterByRegexp(constantData.defaultAssignee, - getComponent()).toLowerCase(); + getComponent()); } /** @@ -46,7 +46,7 @@ function setDefaultAssignee() { var defAss = getDefaultAssignee(); // Add setting default assignee - if ((defAss.length > 0) && (defAss !== getOwner())) { + if (defAss && (defAss !== getOwner())) { createNewButton("bz_assignee_edit_container",true, { "name": "Def. Assignee", "assignee": "default" |