[Bps-public-commit] rtx-calendar branch multiple-days-events updated. 1.05-40-gd440f56
BPS Git Server
git at git.bestpractical.com
Wed Oct 4 19:19:27 UTC 2023
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtx-calendar".
The branch, multiple-days-events has been updated
via d440f5621774d8f00d50c9c511913b0ed0da5074 (commit)
from 22c5c0bbf06a55141f82b13d6079bab6e36f21ae (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d440f5621774d8f00d50c9c511913b0ed0da5074
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date: Wed Oct 4 16:18:28 2023 -0300
Make filter on status values sorted non case sensitive
The sort order of filter on status values was different from the sort
order of the color legend, causing confusion.
We fix it to use the same sorting as the color legend, converting the
status values to lowercase before sorting.
diff --git a/html/Elements/CalendarSidebar b/html/Elements/CalendarSidebar
index db84e96..29e68dc 100644
--- a/html/Elements/CalendarSidebar
+++ b/html/Elements/CalendarSidebar
@@ -14,7 +14,7 @@
method="post">
<select name="NewFilterOnStatus" id="NewFilterOnStatus"
class="selectpicker form-control filteronstatus mt-3 mb-3" multiple="multiple" size="6">
-% for my $Status (sort {loc($a) cmp loc($b)} @{RT->Config->Get('CalendarFilterStatuses')}) {
+% for my $Status (sort {lc(loc($a)) cmp lc(loc($b))} @{RT->Config->Get('CalendarFilterStatuses')}) {
<option value="<% $Status %>"
% if (@FilterOnStatus && $FilterOnStatus[0]) {
<% (grep { $Status eq $_ } @FilterOnStatus) ? 'selected="selected"':''%>
-----------------------------------------------------------------------
Summary of changes:
html/Elements/CalendarSidebar | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
rtx-calendar
More information about the Bps-public-commit
mailing list