[Vtigercrm-commits] [vtiger-commits] r10768 - in /vtigercrm/branches/5.0.3/include: RelatedListView.php utils/ListViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 24 02:03:27 EDT 2007
Author: richie
Date: Tue Apr 24 00:03:02 2007
New Revision: 10768
Log:
fix for notes list misplace issue. Fixes #3274 #3320 --minnie
Modified:
vtigercrm/branches/5.0.3/include/RelatedListView.php
vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
Modified: vtigercrm/branches/5.0.3/include/RelatedListView.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/RelatedListView.php (original)
+++ vtigercrm/branches/5.0.3/include/RelatedListView.php Tue Apr 24 00:03:02 2007
@@ -305,7 +305,7 @@
{
$entries[] = "";
}
-
+ $row['description'] = preg_replace("/(<\/?)(\w+)([^>]*>)/i","",$row['description']);
if(strlen($row['description']) > 40)
{
$row['description'] = substr($row['description'],0,40).'...';
Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Tue Apr 24 00:03:02 2007
@@ -1082,12 +1082,11 @@
}
//Ends
$field_val = $adb->query_result($list_result,$list_result_count,$colname);
- $temp_val = $field_val;
+ $temp_val = preg_replace("/(<\/?)(\w+)([^>]*>)/i","",$field_val);
if(strlen($field_val) > 40)
{
- $temp_val = substr($field_val,0,40).'...';
+ $temp_val = substr(preg_replace("/(<\/?)(\w+)([^>]*>)/i","",$field_val),0,40).'...';
}
-
if($uitype == 53)
{
$value = $adb->query_result($list_result,$list_result_count,'user_name');
More information about the vtigercrm-commits
mailing list