Commit bac2cb35 authored by Albert Ting's avatar Albert Ting Committed by Frédéric Buclin

Bug 1118930: validateEnterBug() doesn't work when attachments are disabled

r=LpSolit a=glob
parent a7b4b1ba
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment