Ticket #26708

PATCH add exception for time tracking plugins

Eröffnet am: 2011-11-09 21:13 Letztes Update: 2013-04-26 21:59

Auswertung:
(Anonym)
Verantwortlicher:
(Keine)
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Duplicate
Datei:
Keine

Details

Index: ticketgantt.py
===================================================================
--- ticketgantt.py	(revision 808)
+++ ticketgantt.py	(working copy)
@@ -564,11 +564,13 @@
                 component = "*"
             # time tracking
             if estimatedhours != None:
-                estimatedhours = float(estimatedhours)
+                try:    estimatedhours = float(estimatedhours)
+                except: estimatedhours = 0.0
                 sum_estimatedhours += estimatedhours
                 sum_est_isNone = False
             if totalhours != None:
-                totalhours = float(totalhours)
+                try:    totalhours = float(totalhours)
+                except: totalhours = 0.0
                 sum_totalhours += totalhours
             else: totalhours = 0.0
             ticket = {'id':id, 'type':type, 'summary':summary, 'owner':owner, 'description': description, 'status':status,

Ticket-Verlauf (3/4 Historien)

2011-11-09 21:13 Aktualisiert von: None
  • New Ticket "PATCH add exception for time tracking plugins" created
2011-11-10 12:12 Aktualisiert von: None
Kommentar
Index: ticketcalendar.py
===================================================================
--- ticketcalendar.py	(revision 808)
+++ ticketcalendar.py	(working copy)
@@ -157,11 +157,13 @@
                 continue
             # time tracking
             if estimatedhours != None:
-                estimatedhours = float(estimatedhours)
+                try:    estimatedhours = float(estimatedhours)
+                except: estimatedhours = 0.0
                 sum_estimatedhours += estimatedhours
                 sum_est_isNone = False
             if totalhours != None:
-                totalhours = float(totalhours)
+                try:    totalhours = float(totalhours)
+                except: totalhours = 0.0
                 sum_totalhours += totalhours
             else: totalhours = 0.0
             ticket = {'id':id, 'type':type, 'summary':summary, 'owner':owner, 'description': description,


2012-03-15 08:20 Aktualisiert von: okamototk
  • Lösung Update from Keine to Gefixt
  • Status Update from Offen to Geschlossen
  • Ticket Close date is changed to 2012-03-15 08:20
Kommentar

Applied by jun66j5.

2013-04-26 21:59 Aktualisiert von: jun66j5
  • Lösung Update from Gefixt to Duplicate
Kommentar

Applied by jun66j5.

I'd not applied the patch yet..., ressiue at #29010.

Dateianhangliste

Keine Anhänge

Bearbeiten

Please login to add comment to this ticket » Anmelden