]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 477391: The "Commit" and "Move to..." buttons at the top of show_bug should only...
authorguy.pyrzak%gmail.com <>
Thu, 12 Feb 2009 05:20:05 +0000 (05:20 +0000)
committerguy.pyrzak%gmail.com <>
Thu, 12 Feb 2009 05:20:05 +0000 (05:20 +0000)
Patch By Guy Pyrzak <guy.pyrzak@gmail.com> r=LpSolit, a=LpSolit

template/en/default/bug/edit.html.tmpl

index 5d8a423f8e80b9ae7ecac3e3c97b444c8ad3abe3..f097d0616c64aa5cd5b3b38b1c23a679545bff09 100644 (file)
   [% spellcheck = undef %]
 [% END %]
 [% BLOCK commit_button %]
-  <div class="knob-buttons">
-    <input type="submit" value="Commit" id="commit[% id FILTER css_class_quote %]">
-    [% IF bug.user.canmove %]
-      <input type="submit" name="action" id="action[% id FILTER css_class_quote %]" value="[% Param("move-button-text") %]">
-    [% END %]
-  </div>
+  [% IF user.id %]
+    <div class="knob-buttons">
+      <input type="submit" value="Commit" id="commit[% id FILTER css_class_quote %]">
+      [% IF bug.user.canmove %]
+        <input type="submit" name="action" id="action[% id FILTER css_class_quote %]" value="[% Param("move-button-text") %]">
+      [% END %]
+    </div>
+  [% END %]
 [% END %]