[Bps-public-commit] rt-extension-jsgantt branch, master, updated. 3227422eceb21f871531f4e037d710b38f48c891

? sunnavy sunnavy at bestpractical.com
Mon Feb 6 13:25:51 EST 2012


The branch, master has been updated
       via  3227422eceb21f871531f4e037d710b38f48c891 (commit)
       via  a53f343f79f9ce32258655e4e63451272df40640 (commit)
      from  7a235e2ed6ecf3cbf8fe05b2b8dcad0d3bd6ec5a (commit)

Summary of changes:
 html/Callbacks/JSGantt/Elements/Tabs/Privileged |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

- Log -----------------------------------------------------------------
commit a53f343f79f9ce32258655e4e63451272df40640
Author: sunnavy <sunnavy at gmail.com>
Date:   Tue Feb 7 02:22:10 2012 +0800

    clear unused code

diff --git a/html/Callbacks/JSGantt/Elements/Tabs/Privileged b/html/Callbacks/JSGantt/Elements/Tabs/Privileged
index 408cd2e..172f87b 100644
--- a/html/Callbacks/JSGantt/Elements/Tabs/Privileged
+++ b/html/Callbacks/JSGantt/Elements/Tabs/Privileged
@@ -48,13 +48,6 @@
 <%INIT>
 my $request_path = $HTML::Mason::Commands::r->path_info;
 
-my $query_string = sub {
-    my %args = @_;
-    my $u    = URI->new();
-    $u->query_form(%args);
-    return $u->query;
-};
-
 if ( $request_path =~ qr{^/Search/Results.html} ) {
     my $tabs = PageMenu;
     $tabs->child( 'gantt' => title => loc('Gantt Chart'),

commit 3227422eceb21f871531f4e037d710b38f48c891
Author: sunnavy <sunnavy at gmail.com>
Date:   Tue Feb 7 02:24:23 2012 +0800

    decode $m->request_args->{Query} first to avoid double encode

diff --git a/html/Callbacks/JSGantt/Elements/Tabs/Privileged b/html/Callbacks/JSGantt/Elements/Tabs/Privileged
index 172f87b..9ad1c3d 100644
--- a/html/Callbacks/JSGantt/Elements/Tabs/Privileged
+++ b/html/Callbacks/JSGantt/Elements/Tabs/Privileged
@@ -50,8 +50,9 @@ my $request_path = $HTML::Mason::Commands::r->path_info;
 
 if ( $request_path =~ qr{^/Search/Results.html} ) {
     my $tabs = PageMenu;
+    require Encode;
     $tabs->child( 'gantt' => title => loc('Gantt Chart'),
-                    path => '/Search/JSGantt.html?Query=' .$m->request_args->{'Query'} );
+                    path => '/Search/JSGantt.html?Query=' . Encode::decode_utf8 $m->request_args->{'Query'} );
 }
 
 </%INIT>

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



More information about the Bps-public-commit mailing list