diff --git a/include/Webservices/DataTransform.php b/include/Webservices/DataTransform.php index 1603ebf8..439cd126 100644 --- a/include/Webservices/DataTransform.php +++ b/include/Webservices/DataTransform.php @@ -106,8 +106,10 @@ public static function sanitizeForInsert($row,$meta){ $ownerFields = $meta->getOwnerFields(); foreach($ownerFields as $index=>$field){ if(isset($row[$field]) && $row[$field]!=null){ - $ownerDetails = vtws_getIdComponents($row[$field]); - $row[$field] = $ownerDetails[1]; + if(strpos($row[$field],'x')!==false) { + $ownerDetails = vtws_getIdComponents($row[$field]); + $row[$field] = $ownerDetails[1]; + } } } if(strtolower($meta->getEntityName()) == "emails"){