[Bps-public-commit] RT-BugTracker-Public branch, 4.2-4.4-compatibility, updated. 1.00-27-g827580c
Shawn Moore
shawn at bestpractical.com
Thu Jun 8 14:24:23 EDT 2017
The branch, 4.2-4.4-compatibility has been updated
via 827580ca6aae1c9bc99856a1df0818cf66cc2e8d (commit)
from 6916ea132c5a9874e207cc875c527501fb93c662 (commit)
Summary of changes:
etc/RT_SiteConfig.pm | 2 ++
html/Public/Search/Results.html | 2 +-
lib/RT/BugTracker/Public.pm | 7 +++++++
3 files changed, 10 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 827580ca6aae1c9bc99856a1df0818cf66cc2e8d
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Thu Jun 8 14:24:20 2017 -0400
Add config option WebPublicUserSortResults
diff --git a/etc/RT_SiteConfig.pm b/etc/RT_SiteConfig.pm
index 67f690e..a9d89ef 100644
--- a/etc/RT_SiteConfig.pm
+++ b/etc/RT_SiteConfig.pm
@@ -2,3 +2,5 @@
Set($WebPublicUser, 'public');
Set($WebPublicUserReporting, 0);
+Set($WebPublicUserSortResults, 0);
+
diff --git a/html/Public/Search/Results.html b/html/Public/Search/Results.html
index 525e922..1d2ba46 100644
--- a/html/Public/Search/Results.html
+++ b/html/Public/Search/Results.html
@@ -49,7 +49,7 @@
<& /Elements/Tabs &>
<& /Elements/CollectionList,
Query => $ARGS{Query},
- AllowSorting => 0,
+ AllowSorting => RT->Config->Get('WebPublicUserSortResults'),
OrderBy => 'id',
Order => 'ASC',
Rows => 50,
diff --git a/lib/RT/BugTracker/Public.pm b/lib/RT/BugTracker/Public.pm
index eb00687..575d7ef 100644
--- a/lib/RT/BugTracker/Public.pm
+++ b/lib/RT/BugTracker/Public.pm
@@ -163,6 +163,13 @@ builder, add this line:
Set($WebPublicUserQueryBuilder, 1);
+=head2 WebPublicUserSortResults
+
+By default, the web public user cannot click column headers to re-sort search
+results due to performance implications. To permit this, add this line:
+
+ Set($WebPublicUserSortResults, 1);
+
=cut
sub IsPublicUser {
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list