diff options
author | Byron Jones <bjones@mozilla.com> | 2012-10-04 07:29:07 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-10-04 07:29:07 +0200 |
commit | 0b7ca5cd29d9fae16326eb059caf75dc54876155 (patch) | |
tree | 2e67f3e2dfafce4689ddcdb970dc7571586979c9 /template | |
parent | e9b93e7519656a29da28a859ffee69667b7a440a (diff) | |
download | bugzilla-0b7ca5cd29d9fae16326eb059caf75dc54876155.tar.gz bugzilla-0b7ca5cd29d9fae16326eb059caf75dc54876155.tar.xz |
Bug 713796: "Reset Assignee to default" and "Reset QA Contact to default" should only be checked when the assignee/qa-contact is the default
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 3e09f4392..8d40e4ab7 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -327,9 +327,6 @@ bug = bug, field = bug_fields.op_sys, no_tds = 1, value = bug.op_sys editable = bug.check_can_change_field('op_sys', 0, 1) %] - <script type="text/javascript"> - assignToDefaultOnChange(['product', 'component']); - </script> </td> </tr> @@ -532,6 +529,11 @@ </td> </tr> [% END %] + <script type="text/javascript"> + assignToDefaultOnChange(['product', 'component'], + '[% bug.component_obj.default_assignee.login FILTER js %]', + '[% bug.component_obj.default_qa_contact.login FILTER js %]'); + </script> [% END %] [%############################################################################%] |