[Fusionforge-commits] r9136 - branches/Branch_5_0/gforge/common/tracker

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Mar 19 11:37:36 CET 2010


Author: lolando
Date: 2010-03-19 11:37:36 +0100 (Fri, 19 Mar 2010)
New Revision: 9136

Modified:
   branches/Branch_5_0/gforge/common/tracker/Artifact.class.php
Log:
Fixed bug closing time

Modified: branches/Branch_5_0/gforge/common/tracker/Artifact.class.php
===================================================================
--- branches/Branch_5_0/gforge/common/tracker/Artifact.class.php	2010-03-19 10:36:12 UTC (rev 9135)
+++ branches/Branch_5_0/gforge/common/tracker/Artifact.class.php	2010-03-19 10:37:36 UTC (rev 9136)
@@ -988,15 +988,10 @@
 			$changes['status'] = 1;
 			$update = true;
 
-			//
-			//	Enter the timestamp if we are changing to closed
-			//
 			if ($status_id != 1) {
-				$sqlu .= " close_date='".time()."', ";
+				$close_date = time () ;
 			} else {
-				// Reset the close_date if bug is re-opened 
-				// (otherwise stat reports will be wrong).
-				$sqlu .= " close_date='0', ";
+				$close_date = 0 ;
 			}
 			$this->addHistory('close_date', $this->getCloseDate());
 		}




More information about the Fusionforge-commits mailing list