From bac2cb357aed28b92433ff0e0960e9c190f81ab6 Mon Sep 17 00:00:00 2001 From: Albert Ting Date: Thu, 26 Feb 2015 15:34:50 +0100 Subject: Bug 1118930: validateEnterBug() doesn't work when attachments are disabled r=LpSolit a=glob --- js/field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1