[Fusionforge-commits] r15809 - trunk/src/utils/one-off-scripts

Thorsten Glaser mirabilos at fusionforge.org
Mon Jun 18 15:51:16 CEST 2012


Author: mirabilos
Date: 2012-06-18 15:51:15 +0200 (Mon, 18 Jun 2012)
New Revision: 15809

Modified:
   trunk/src/utils/one-off-scripts/tracker-export.php
Log:
turns out using the aid as key is better when doing input validation
(more user-friendly error messages, anyway)

do not drop artifact_id from item Object though, to keep it complete

also, add comment where _comments _extrafields _files elements would
be logically added, if someone extends this


Modified: trunk/src/utils/one-off-scripts/tracker-export.php
===================================================================
--- trunk/src/utils/one-off-scripts/tracker-export.php	2012-06-18 13:15:58 UTC (rev 15808)
+++ trunk/src/utils/one-off-scripts/tracker-export.php	2012-06-18 13:51:15 UTC (rev 15809)
@@ -114,8 +114,13 @@
 	/* add a _permalink pseudo-field */
 	$rec['_permalink'] = util_make_url('/tracker/t_follow.php/' . $aid);
 
+	/*
+	 * here would be the place to add more pseudo-elements, like
+	 * a _comments Array, an _extrafields Value, a _files Value…
+	 */
+
 	/* append to list of records to emit */
-	$out[] = $rec;
+	$out[$aid] = $rec;
 }
 
 /* generate output */




More information about the Fusionforge-commits mailing list