summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorAlbert Ting <altlist@gmail.com>2015-02-26 15:32:51 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2015-02-26 15:32:51 +0100
commit6419b7fcbf9c8efa2d7b55c7e40cfbdf08a5cd5c (patch)
tree188e4876123f3ed56909755e8bbe35a8cc36d617 /js
parent0a8f7a59f894738d86564874fbabeb1c81f3178d (diff)
downloadbugzilla-6419b7fcbf9c8efa2d7b55c7e40cfbdf08a5cd5c.tar.gz
bugzilla-6419b7fcbf9c8efa2d7b55c7e40cfbdf08a5cd5c.tar.xz
Bug 1118930: validateEnterBug() doesn't work when attachments are disabled
r=LpSolit a=glob
Diffstat (limited to 'js')
-rw-r--r--js/field.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/field.js b/js/field.js
index c0a2218a8..167ab492f 100644
--- a/js/field.js
+++ b/js/field.js
@@ -42,7 +42,7 @@ function validateEnterBug(theform) {
// These are checked in the reverse order that they appear on the page,
// so that the one closest to the top of the form will be focused.
- if (attach_data.value && YAHOO.lang.trim(attach_desc.value) == '') {
+ if (attach_data && attach_data.value && YAHOO.lang.trim(attach_desc.value) == '') {
_errorFor(attach_desc, 'attach_desc');
focus_me = attach_desc;
}