aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Ting <altlist@gmail.com>2015-02-26 15:34:50 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2015-02-26 15:34:50 +0100
commitbac2cb357aed28b92433ff0e0960e9c190f81ab6 (patch)
tree02f594430b85f02ab6d5f18577e10b60a6e4ecdf
parenta7b4b1ba18e33383e0f5723587ba40ddcdf82a91 (diff)
downloadbugs-bac2cb357aed28b92433ff0e0960e9c190f81ab6.tar
bugs-bac2cb357aed28b92433ff0e0960e9c190f81ab6.tar.gz
bugs-bac2cb357aed28b92433ff0e0960e9c190f81ab6.tar.bz2
bugs-bac2cb357aed28b92433ff0e0960e9c190f81ab6.tar.xz
bugs-bac2cb357aed28b92433ff0e0960e9c190f81ab6.zip
Bug 1118930: validateEnterBug() doesn't work when attachments are disabled
r=LpSolit a=glob
-rw-r--r--js/field.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/field.js b/js/field.js
index 5589bc498..2193c40eb 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;
}