Commit 7dd74777 authored by Matt Tyson's avatar Matt Tyson Committed by Byron Jones

Bug 1036242: "TypeError: bug_status is undefined" when creating a bug

r=glob,a=sgreen
parent 76b32038
...@@ -46,10 +46,14 @@ function validateEnterBug(theform) { ...@@ -46,10 +46,14 @@ function validateEnterBug(theform) {
_errorFor(attach_desc, 'attach_desc'); _errorFor(attach_desc, 'attach_desc');
focus_me = attach_desc; focus_me = attach_desc;
} }
var check_description = status_comment_required[bug_status.value]; // bug_status can be undefined if the bug_status field is not editable by
if (check_description && YAHOO.lang.trim(description.value) == '') { // the currently logged in user.
_errorFor(description, 'description'); if (bug_status) {
focus_me = description; var check_description = status_comment_required[bug_status.value];
if (check_description && YAHOO.lang.trim(description.value) == '') {
_errorFor(description, 'description');
focus_me = description;
}
} }
if (YAHOO.lang.trim(short_desc.value) == '') { if (YAHOO.lang.trim(short_desc.value) == '') {
_errorFor(short_desc); _errorFor(short_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