]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1344979 - When adding a patch to an unassigned bug, pre-check the reassignment...
authorSebastin Santy <sebastinssanty@gmail.com>
Wed, 15 Mar 2017 20:06:29 +0000 (16:06 -0400)
committerDylan William Hardison <dylan@hardison.net>
Wed, 15 Mar 2017 20:06:40 +0000 (16:06 -0400)
template/en/default/attachment/create.html.tmpl

index d2dfce5ccdc990e39c6990bd402af3313c07f308..63bf14b3769b9d0ef2cc947a0cc9f59b450f0d35 100644 (file)
@@ -84,7 +84,7 @@ TUI_hide_default('attachment_text_field');
         <td>
           <em>If you want to assign this [% terms.bug %] to yourself,
               check the box below.</em><br>
-          <input type="checkbox" id="takebug" name="takebug" value="1">
+          <input type="checkbox" id="takebug" name="takebug" value="1" [% IF bug.assigned_to.login == "nobody@mozilla.org" || bug.assigned_to.login.search('.bugs$') %] checked [% END %]>
           <label for="takebug">take [% terms.bug %]</label>
           [% bug_statuses = [] %]
           [% FOREACH bug_status = bug.status.can_change_to %]