[evolvis-commits] r18254: small-fixes pending merges:↵ Thorsten Glaser 2012-04-05 [#2968] flush cache before accessing list of EFelements when adding one

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Apr 5 23:02:29 CEST 2012


Author: mirabilos
Date: 2012-04-05 23:02:29 +0200 (Thu, 05 Apr 2012)
New Revision: 18254

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactWorkflow.class.php
Log:
small-fixes pending merges:
  Thorsten Glaser 2012-04-05 [#2968] flush cache before accessing list of EFelements when adding one


Modified: trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactWorkflow.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactWorkflow.class.php	2012-04-05 21:02:24 UTC (rev 18253)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactWorkflow.class.php	2012-04-05 21:02:29 UTC (rev 18254)
@@ -87,6 +87,9 @@
 	 * When a new element is created, add all the new events in the workflow.
 	 */
 	function addNode($element_id) {
+		/* flush cache used by getExtraFieldElements */
+		unset($this->ath->extra_field[$this->field_id]);
+
 		$elearray = $this->ath->getExtraFieldElements($this->field_id);
 		foreach ($elearray as $e) {
 			if ($element_id !== $e['element_id']) {



More information about the evolvis-commits mailing list