[Bps-public-commit] rt-extension-jsgantt branch, master, updated. 40586750b03c08864648535e6b07cbad4c1e8017

? sunnavy sunnavy at bestpractical.com
Wed Dec 14 22:54:30 EST 2011


The branch, master has been updated
       via  40586750b03c08864648535e6b07cbad4c1e8017 (commit)
      from  57cd23d6db717e22d3f2eef7220801b59cc4fc84 (commit)

Summary of changes:
 lib/RT/Extension/JSGantt.pm |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 40586750b03c08864648535e6b07cbad4c1e8017
Author: sunnavy <sunnavy at gmail.com>
Date:   Thu Dec 15 11:52:59 2011 +0800

    || means scalar context

diff --git a/lib/RT/Extension/JSGantt.pm b/lib/RT/Extension/JSGantt.pm
index 21be9eb..4ea6c26 100644
--- a/lib/RT/Extension/JSGantt.pm
+++ b/lib/RT/Extension/JSGantt.pm
@@ -117,7 +117,8 @@ sub TicketsInfo {
 
 
     my ( @ids, %info );
-    my %options = RT->Config->Get('JSGanttOptions') || ();
+    my %options = RT->Config->Get('JSGanttOptions') ?
+        RT->Config->Get('JSGanttOptions') : ();
 
     my @colors;
     if ( $options{ColorScheme} ) {
@@ -248,7 +249,8 @@ $start and $end are strings like 3/21/2011
 
 sub _GetTimeRange {
     my ( $Ticket, %args ) = @_;
-    my %options = RT->Config->Get('JSGanttOptions') || ();
+    my %options = RT->Config->Get('JSGanttOptions') ?
+        RT->Config->Get('JSGanttOptions') : ();
 
     # the, uh, long way
     my ( $start_obj, $start ) = _GetDate( $Ticket, 'Starts', 'Started' );

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



More information about the Bps-public-commit mailing list