diff options
author | lpsolit%gmail.com <> | 2007-10-08 07:06:19 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-10-08 07:06:19 +0200 |
commit | 73553366455cb23a6df1847d67bde74386c87742 (patch) | |
tree | 4abf2d2bb5d040f579c2749b6de0e36f85b936c2 /template/en/default | |
parent | bd370f377168cc55ff33240a16d574bf7982b5a5 (diff) | |
download | bugzilla-73553366455cb23a6df1847d67bde74386c87742.tar.gz bugzilla-73553366455cb23a6df1847d67bde74386c87742.tar.xz |
Bug 398739: "Taking a bug" while adding a new attachment locks the bug status forever if the ASSIGNED bug status has been renamed or deleted - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/attachment/create.html.tmpl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index 10a6abec2..781674a96 100644 --- a/template/en/default/attachment/create.html.tmpl +++ b/template/en/default/attachment/create.html.tmpl @@ -73,6 +73,21 @@ check the box below.</em><br> <input type="checkbox" id="takebug" name="takebug" value="1"> <label for="takebug">take [% terms.bug %]</label> + [% bug_statuses = [] %] + [% FOREACH bug_status = bug.status.can_change_to %] + [% NEXT IF bug_status.name == "UNCONFIRMED" && !bug.product_obj.votes_to_confirm %] + [% bug_statuses.push(bug_status) IF bug_status.is_open %] + [% END %] + [% IF bug_statuses.size %] + <label for="takebug">and set the [% terms.bug %] status to</label> + <select id="bug_status" name="bug_status"> + <option label="[% bug.status.name FILTER html %]">[% bug.status.name FILTER html %] (current)</option> + [% FOREACH bug_status = bug_statuses %] + [% NEXT IF bug_status.id == bug.status.id %] + <option label="[% bug_status.name FILTER html %]">[% bug_status.name FILTER html %]</option> + [% END %] + </select> + [% END %] </td> </tr> [% END %] |