From cd61d357d20a973e5ebdf3baeaecd9f38f9a6c7a Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Tue, 31 Jul 2012 16:38:24 -0400 Subject: [PATCH] Bug 684171 - add a "(take)" link to the QA Contact field r/a=LpSolit --- js/field.js | 2 +- template/en/default/bug/edit.html.tmpl | 41 +++++++++++++++----------- 2 files changed, 24 insertions(+), 19 deletions(-) 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 %] -- 2.47.2