From: Dave Lawrence Date: Tue, 31 Jul 2012 20:38:24 +0000 (-0400) Subject: Bug 684171 - add a "(take)" link to the QA Contact field X-Git-Tag: bugzilla-4.3.3~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd61d357d20a973e5ebdf3baeaecd9f38f9a6c7a;p=thirdparty%2Fbugzilla.git Bug 684171 - add a "(take)" link to the QA Contact field r/a=LpSolit --- diff --git a/js/field.js b/js/field.js index f5376a4f26..caf13217bc 100644 --- a/js/field.js +++ b/js/field.js @@ -294,7 +294,7 @@ function checkForChangedFieldValues(e, ContainerInputArray ) { var unhide = false; if ( el ) { if ( el.value != ContainerInputArray[3] || - ( el.value == "" && el.id != "alias") ) { + ( el.value == "" && el.id != "alias" && el.id != 'qa_contact') ) { unhide = true; } else { diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index cc2ce80787..ef45ca2527 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -421,36 +421,41 @@ [% IF bug.check_can_change_field("qa_contact", 0, 1) %] - [% IF bug.qa_contact != "" %] -
+
- - [% INCLUDE global/user.html.tmpl who = bug.qa_contact %] + [% INCLUDE global/user.html.tmpl who = bug.qa_contact %] (edit) + [% IF bug.qa_contact.id != user.id %] + (take) + [% END %]
- [% END %]
[% INCLUDE global/userselect.html.tmpl - id => "qa_contact" - name => "qa_contact" - value => bug.qa_contact.login - size => 30 - classes => ["bz_userfield"] - emptyok => 1 + id => "qa_contact" + name => "qa_contact" + value => bug.qa_contact.login + size => 30 + classes => ["bz_userfield"] + emptyok => 1 %]
[% ELSE %]