[Bps-public-commit] rt-extension-jsgantt branch master updated. 1.07-3-gc72870f

BPS Git Server git at git.bestpractical.com
Mon Mar 4 15:14:41 UTC 2024


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 "rt-extension-jsgantt".

The branch, master has been updated
       via  c72870fbcc82b768a90e588bd34811c1a04f47d6 (commit)
       via  596bb40cb9f461c66bd1a078b700b025ac280bcd (commit)
       via  55e301851ebf8a68903d65bffc75d4aa3816c461 (commit)
      from  1c2c5c97bed229a83b54390997d47892d6012215 (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 c72870fbcc82b768a90e588bd34811c1a04f47d6
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Feb 3 06:04:19 2023 +0800

    Prep 1.08

diff --git a/Changes b/Changes
index cbbe116..d1065f7 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+1.08 2023-02-02
+ - Respect ticket search sort order
+
 1.07 2021-08-20
  - Align rows for RT 5
 
diff --git a/META.yml b/META.yml
index ee2f727..19ed332 100644
--- a/META.yml
+++ b/META.yml
@@ -26,6 +26,6 @@ requires:
 resources:
   license: http://opensource.org/licenses/gpl-license.php
   repository: https://github.com/bestpractical/rt-extension-jsgantt
-version: '1.07'
+version: '1.08'
 x_module_install_rtx_version: '0.43'
 x_requires_rt: 4.0.0
diff --git a/lib/RT/Extension/JSGantt.pm b/lib/RT/Extension/JSGantt.pm
index a6dc986..9025772 100644
--- a/lib/RT/Extension/JSGantt.pm
+++ b/lib/RT/Extension/JSGantt.pm
@@ -131,7 +131,7 @@ or add C<RT::Extension::JSGantt> to your existing C<@Plugins> line.
 
 package RT::Extension::JSGantt;
 
-our $VERSION = '1.07';
+our $VERSION = '1.08';
 
 use warnings;
 use strict;

commit 596bb40cb9f461c66bd1a078b700b025ac280bcd
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Feb 3 06:02:32 2023 +0800

    Update M:I:RTx

diff --git a/META.yml b/META.yml
index d6681da..ee2f727 100644
--- a/META.yml
+++ b/META.yml
@@ -27,5 +27,5 @@ resources:
   license: http://opensource.org/licenses/gpl-license.php
   repository: https://github.com/bestpractical/rt-extension-jsgantt
 version: '1.07'
-x_module_install_rtx_version: '0.42'
+x_module_install_rtx_version: '0.43'
 x_requires_rt: 4.0.0
diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index 2dd9489..2889ece 100644
--- a/inc/Module/Install/RTx.pm
+++ b/inc/Module/Install/RTx.pm
@@ -9,7 +9,7 @@ no warnings 'once';
 use Term::ANSIColor qw(:constants);
 use Module::Install::Base;
 use base 'Module::Install::Base';
-our $VERSION = '0.42';
+our $VERSION = '0.43';
 
 use FindBin;
 use File::Glob     ();
@@ -134,7 +134,7 @@ lexicons ::
     if( $extra_args->{'remove_files'} ){
         $self->include('Module::Install::RTx::Remove');
         our @remove_files;
-        eval { require "etc/upgrade/remove_files" }
+        eval { require "./etc/upgrade/remove_files" }
           or print "No remove file located, no files to remove\n";
         $remove_files = join ",", map {"q(\$(DESTDIR)$plugin_path/$name/$_)"} @remove_files;
     }

commit 55e301851ebf8a68903d65bffc75d4aa3816c461
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Feb 3 05:59:32 2023 +0800

    Pass all query arguments to Gantt page
    
    The initial reason is to respect the specified ticket order.

diff --git a/html/Callbacks/JSGantt/Elements/Tabs/Privileged b/html/Callbacks/JSGantt/Elements/Tabs/Privileged
index c448491..e449422 100644
--- a/html/Callbacks/JSGantt/Elements/Tabs/Privileged
+++ b/html/Callbacks/JSGantt/Elements/Tabs/Privileged
@@ -54,9 +54,13 @@ if ( $request_path =~ qr{^/Search/} && (!$DECODED_ARGS->{Class} || $DECODED_ARGS
     }
     elsif ( $request_path !~ qr{^/Search/Simple.html$} || $DECODED_ARGS->{q} ) {
         my $current_search = $session{"CurrentSearchHash-RT::Tickets"} || $session{"CurrentSearchHash"} || {};
-        my $query = $DECODED_ARGS->{'Query'} || $current_search->{'Query'};
-        if ( $query ) {
-            PageMenu->child( 'gantt' => title => loc('Gantt Chart'), path => '/Search/JSGantt.html?Query=' . $query );
+        my $query          = $DECODED_ARGS->{'Query'} || $current_search->{'Query'};
+        if ($query) {
+            PageMenu->child(
+                'gantt' => title => loc('Gantt Chart'),
+                path    => '/Search/JSGantt.html?'
+                    . $m->comp( '/Elements/QueryString', %$current_search, %$DECODED_ARGS ),
+            );
         }
     }
 }

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

Summary of changes:
 Changes                                         |  3 +++
 META.yml                                        |  4 ++--
 html/Callbacks/JSGantt/Elements/Tabs/Privileged | 10 +++++++---
 inc/Module/Install/RTx.pm                       |  4 ++--
 lib/RT/Extension/JSGantt.pm                     |  2 +-
 5 files changed, 15 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
rt-extension-jsgantt


More information about the Bps-public-commit mailing list