From: olav%bkor.dhs.org <>
Date: Tue, 17 Oct 2006 02:22:57 +0000 (+0000)
Subject: Bug 314789: 'Leave as {CURRENT STATE}' should not appear unless there is another...
X-Git-Tag: bugzilla-2.23.4~284
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b2d1898e86b19f73b88ea0f2d52ce137446c564;p=thirdparty%2Fbugzilla.git
Bug 314789: 'Leave as {CURRENT STATE}' should not appear unless there is another radio button
Patch By Olav Vitters r=timeless a=myk
---
diff --git a/template/en/default/bug/knob.html.tmpl b/template/en/default/bug/knob.html.tmpl
index 00ffcb053c..02b5bed8ab 100644
--- a/template/en/default/bug/knob.html.tmpl
+++ b/template/en/default/bug/knob.html.tmpl
@@ -25,16 +25,12 @@
[%# *** Knob *** %]
-
-
-
[% knum = 1 %]
+ [% initial_action_shown = 0 %]
[% IF bug.isunconfirmed && bug.user.canconfirm %]
+ [% PROCESS initial_action %]
-
[%# Common actions %]
+[% BLOCK initial_action %]
+ [%# Only show 'Leave as' action in combination with another knob %]
+ [% IF !initial_action_shown %]
+
+
+ Leave as [% status_descs.${bug.bug_status} FILTER html %]
+ [% get_resolution(bug.resolution) FILTER html %]
+
+
+ [% initial_action_shown = 1 %]
+ [% END %]
+[% END %]
+
[% BLOCK select_resolution %]