Commit:    d5b95f1d207d06fc06379f1c00f5dbb387d54787
Author:    Kalle Sommer Nielsen <[email protected]>         Tue, 24 Oct 2017 
06:19:36 +0200
Parents:   0a62fb2027d3de6ae2b287eb577cd0ce91457b2d
Branches:  master

Link:       
http://git.php.net/?p=web/bugs.git;a=commitdiff;h=d5b95f1d207d06fc06379f1c00f5dbb387d54787

Log:
Don't display the quick fix dropdown, if there are no quickfixes available for 
this project

Changed paths:
  M  www/bug.php


Diff:
diff --git a/www/bug.php b/www/bug.php
index c5d136d..e1d69ee 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -832,7 +832,10 @@ if ($edit == 1 || $edit == 2) { ?>
 ?>
        <table>
 
-<?php if ($edit == 1 && $show_bug_info) { /* Developer Edit Form */ ?>
+<?php
+      if ($edit == 1 && $show_bug_info) { /* Developer Edit Form */
+        if (isset($RESOLVE_REASONS) && $RESOLVE_REASONS) {
+?>
                <tr>
                        <th class="details"><label for="in" 
accesskey="c">Qui<span class="accesskey">c</span>k Fix:</label></th>
                        <td colspan="3">
@@ -840,14 +843,17 @@ if ($edit == 1 || $edit == 2) { ?>
                                        <?php 
show_reason_types((isset($_POST['in']) && isset($_POST['in']['resolve'])) ? 
$_POST['in']['resolve'] : -1, 1); ?>
                                </select>
 
-<?php  if (isset($_POST['in']) && !empty($_POST['in']['resolve'])) { ?>
+<?php    if (isset($_POST['in']) && !empty($_POST['in']['resolve'])) { ?>
                                <input type="hidden" name="trytoforce" 
value="1">
-<?php  } ?>
+<?php    } ?>
 
                                <small>(<a 
href="quick-fix-desc.php">description</a>)</small>
                        </td>
                </tr>
-<?php   if ($is_security_developer) { ?>
+<?php
+        }
+
+        if ($is_security_developer) { ?>
                <tr>
                        <th class="details">CVE-ID:</th>
                        <td colspan="3">


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to