[Fusionforge-commits] r12714 - branches/Branch_5_1/src/common/tracker
Alain Peyrat
aljeux at fusionforge.org
Fri Mar 11 22:07:42 CET 2011
Author: aljeux
Date: 2011-03-11 22:07:42 +0100 (Fri, 11 Mar 2011)
New Revision: 12714
Modified:
branches/Branch_5_1/src/common/tracker/Artifact.class.php
Log:
Cannot move a tracker item from a tracker to another because of @
Modified: branches/Branch_5_1/src/common/tracker/Artifact.class.php
===================================================================
--- branches/Branch_5_1/src/common/tracker/Artifact.class.php 2011-03-11 18:41:39 UTC (rev 12713)
+++ branches/Branch_5_1/src/common/tracker/Artifact.class.php 2011-03-11 21:07:42 UTC (rev 12714)
@@ -954,13 +954,13 @@
$ef = $this->ArtifactType->getExtraFields();
$ef_new = $newArtifactType->getExtraFields();
foreach($extra_fields as $extra_id => $value) {
- $alias = $ef[$extra_id]['alias'];
+ $alias = preg_replace('/^@/', '', $ef[$extra_id]['alias']);
$type = $ef[$extra_id]['field_type'];
// Search if there is an extra field with the same alias.
$new_id = 0;
foreach($ef_new as $id => $arr) {
- if ($arr['alias'] == $alias) {
+ if (preg_replace('/^@/', '', $arr['alias']) == $alias) {
$new_id = $id;
}
}
More information about the Fusionforge-commits
mailing list