[Vtigercrm-commits] [vtiger-commits] r10189 - /vtigercrm/branches/5.0.3/include/utils/export.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Feb 16 01:18:20 EST 2007


Author: saraj
Date: Thu Feb 15 23:18:08 2007
New Revision: 10189

Log:
fix for collapsed in html tags Fixes : #2881 --Minnie

Modified:
    vtigercrm/branches/5.0.3/include/utils/export.php

Modified: vtigercrm/branches/5.0.3/include/utils/export.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/export.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/export.php Thu Feb 15 23:18:08 2007
@@ -113,7 +113,6 @@
 
 	$query = $focus->create_export_query($order_by,$where);
 
-
 	$result = $adb->query($query,true,"Error exporting $type: "."<BR>$query");
 
 	$fields_array = $adb->getFieldsArray($result);
@@ -131,10 +130,11 @@
 
 		foreach ($val as $key => $value)
 		{
-			if($key=="description")
+			if($key=="description" || $key=="note")
 			{
 				$value=br2nl_vt($value);
 			}
+			$value = preg_replace("/(<\/?)(\w+)([^>]*>)/i","",$value);
 			array_push($new_arr, preg_replace("/\"/","\"\"",$value));
 		}
 		$line = implode("\",\"",$new_arr);





More information about the vtigercrm-commits mailing list