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

? sunnavy sunnavy at bestpractical.com
Tue Jul 6 12:18:42 EDT 2010


The branch, master has been updated
       via  fc3b27e912e4077dac86d90688d3fa6e9983c001 (commit)
      from  7feedcf52a03c58fa9f3c9f8ef53f5462e295896 (commit)

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

- Log -----------------------------------------------------------------
commit fc3b27e912e4077dac86d90688d3fa6e9983c001
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Jul 7 00:20:06 2010 +0800

    tiny tweak

diff --git a/lib/RT/Extension/JSGantt.pm b/lib/RT/Extension/JSGantt.pm
index 4608912..44fcf56 100644
--- a/lib/RT/Extension/JSGantt.pm
+++ b/lib/RT/Extension/JSGantt.pm
@@ -163,8 +163,10 @@ sub TicketsInfo {
               defined $Ticket->TimeLeft
               ? ( $Ticket->TimeWorked + $Ticket->TimeLeft )
               : $Ticket->TimeEstimated;
-            if ( $Ticket->TimeWorked ) {
-                $progress = int( 100 * $Ticket->TimeWorked / $total_time );
+            if ($total_time) {
+                if ( $Ticket->TimeWorked ) {
+                    $progress = int( 100 * $Ticket->TimeWorked / $total_time );
+                }
             }
         }
 

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



More information about the Bps-public-commit mailing list