[evolvis-commits] r6970: fix
mirabilos at evolvis.org
mirabilos at evolvis.org
Wed Sep 8 18:34:29 CEST 2010
Author: mirabilos
Date: 2010-09-08 18:34:29 +0200 (Wed, 08 Sep 2010)
New Revision: 6970
Modified:
trunk/gforge_base/evolvisforge/gforge/common/tracker/Artifact.class.php
Log:
fix
Modified: trunk/gforge_base/evolvisforge/gforge/common/tracker/Artifact.class.php
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/common/tracker/Artifact.class.php 2010-09-08 16:34:27 UTC (rev 6969)
+++ trunk/gforge_base/evolvisforge/gforge/common/tracker/Artifact.class.php 2010-09-08 16:34:29 UTC (rev 6970)
@@ -1127,7 +1127,7 @@
$efid)) ;
// if (($type == ARTIFACT_EXTRAFIELDTYPE_SELECT) || ($type == ARTIFACT_EXTRAFIELDTYPE_RADIO) || ($type == ARTIFACT_EXTRAFIELDTYPE_STATUS)) {
//don't add history for text fields -- no, we do
- $this->addHistory($field_name,$this->ArtifactType->getElementName(db_result($resd,0,'field_data')), '');
+ $this->addHistory($field_name,$this->ArtifactType->getElementName(db_result($resd,0,'field_data')), $this->ArtifactType->getElementName($extra_fields[$efid]));
// }
}
} else {
@@ -1421,7 +1421,9 @@
// the other types have and ID or an array of IDs associated to them
default:
- $value = $this->ArtifactType->getElementName($efd[$efid]);
+ $value = isset($efd[$efid]) ?
+ $this->ArtifactType->getElementName($efd[$efid]) :
+ '';
}
$return[$efid] = array("name" => $name, "value" => $value);
More information about the evolvis-commits
mailing list