[Bps-public-commit] RT-BugTracker branch, 4.2-4.4-compatibility, updated. 5.2-14-g73117cb

Shawn Moore shawn at bestpractical.com
Wed Mar 29 17:15:01 EDT 2017


The branch, 4.2-4.4-compatibility has been updated
       via  73117cb575e17aecf41a0658f68e596410d5e447 (commit)
      from  984cd924fd7f8e14743bc854c7d2dd24d566e9db (commit)

Summary of changes:
 html/Dist/Search.html | 8 ++++++++
 lib/RT/BugTracker.pm  | 5 +++++
 2 files changed, 13 insertions(+)

- Log -----------------------------------------------------------------
commit 73117cb575e17aecf41a0658f68e596410d5e447
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Wed Mar 29 21:14:50 2017 +0000

    Add BugTracker_ShowAllDistributions config setting

diff --git a/html/Dist/Search.html b/html/Dist/Search.html
index 2adfe5a..8133bfc 100755
--- a/html/Dist/Search.html
+++ b/html/Dist/Search.html
@@ -49,6 +49,7 @@
 <& /Elements/Tabs &>
 
 <p>
+% unless (RT->Config->Get('BugTracker_ShowAllDistributions')) {
   <form action="/Dist/Display.html" method="get">
     <label for="form-dist-name"><&|/l&>Find a distribution by full name:</&></label>
     <input type="text" name="Queue" id="form-dist-name" data-autocomplete="Queues" data-autocomplete-autosubmit=1 />
@@ -71,6 +72,7 @@
     <input type="submit" class="button" value="<&|/l&>Search</&>" />
   </form>
 </p>
+% }
 
 <p>
   <form action="/Search/Simple.html" method="get">
@@ -82,4 +84,10 @@
   <&|/l&>This search looks for bug report IDs, distribution names, usernames, and bug report descriptions among other fields.</&>
 </p>
 
+% if (RT->Config->Get('BugTracker_ShowAllDistributions')) {
+<h2><&|/l&>Distributions</&></h2>
 
+% my $queues = RT::Queues->new($session{CurrentUser});
+% $queues->UnLimit;
+    <& /Dist/Elements/DistributionList, queues => $queues &>
+% }
diff --git a/lib/RT/BugTracker.pm b/lib/RT/BugTracker.pm
index 1f4d33f..05f8ebd 100644
--- a/lib/RT/BugTracker.pm
+++ b/lib/RT/BugTracker.pm
@@ -357,6 +357,11 @@ in core RT.
 Use this config variable to suppress the alphabetical distribution browser
 UI, for users with fewer than tens of thousands of queues. :)
 
+=item2 BugTracker_ShowAllDistributions
+
+Use this config variable to always display all distributions, for users
+with fewer than hundreds of queues. :)
+
 =head2 Custom Fields
 
 By default, when you run C<make initdb>, RT::BugTracker creates three

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list