[eGroupWare-svn] r56128 - /trunk/tracker/inc/class.tracker_import_csv.inc.php

[email protected] Wed, 11 May 2016 15:06:28 -0000
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: nathangray
Date: Wed May 11 17:06:28 2016
New Revision: 56128

URL: http://svn.stylite.de/viewvc/egroupware?rev=56128&view=rev
Log:
Fix old copy+pase errors

Modified:
    trunk/tracker/inc/class.tracker_import_csv.inc.php

Modified: trunk/tracker/inc/class.tracker_import_csv.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/tracker/inc/class.tracker_import_csv.inc.php?rev=56128&r1=56127&r2=56128&view=diff
==============================================================================
--- trunk/tracker/inc/class.tracker_import_csv.inc.php (original)
+++ trunk/tracker/inc/class.tracker_import_csv.inc.php Wed May 11 17:06:28 2016
@@ -439,18 +439,23 @@
 		}
 
 		// Process some additional fields
-		foreach(array_keys(self::$special_fields) as $field) {
+		foreach(array_keys(self::$special_fields) as $field)
+		{
 			if(!$_data[$field]) continue;
 
 			// Links
-			if(strpos('link', $field) === 0) {
+			if(strpos('link', $field) === 0)
+			{
 				list($app, $id) = explode(':', $_data[$field]);
-			} else {
+			}
+			else
+			{
 				$app = $field;
 				$id = $_data[$field];
 			}
-			if ($app && $app_id) {	// todo nathan: $app_id is undefined
-				Link::link('tracker',$id,$app,$app_id);
+			if ($app && $id && $this->bo->data['tr_id'])
+			{
+				Link::link('tracker',$this->bo->data['tr_id'],$app,$id);
 			}
 		}
 		return true;


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j