[Fusionforge-commits] r12277 - branches/Branch_5_1/src/common/tracker

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Feb 11 21:39:43 CET 2011


Author: aljeux
Date: 2011-02-11 21:39:43 +0100 (Fri, 11 Feb 2011)
New Revision: 12277

Modified:
   branches/Branch_5_1/src/common/tracker/ArtifactFile.class.php
Log:
Reload internal data after creating a file attachment.

Modified: branches/Branch_5_1/src/common/tracker/ArtifactFile.class.php
===================================================================
--- branches/Branch_5_1/src/common/tracker/ArtifactFile.class.php	2011-02-11 20:39:38 UTC (rev 12276)
+++ branches/Branch_5_1/src/common/tracker/ArtifactFile.class.php	2011-02-11 20:39:43 UTC (rev 12277)
@@ -179,6 +179,14 @@
 			return false;
 		} else {
 			db_commit();
+
+			//
+			//	Now set up our internal data structures
+			//
+			if (!$this->fetchData($id)) {
+				return false;
+			}
+
 			// If time is set, no need to add to history, will be done in batch
 			if (!array_key_exists('time', $importData)){
 				$this->Artifact->addHistory('File Added',$id.': '.$filename);




More information about the Fusionforge-commits mailing list