[Vtigercrm-commits] [vtiger development] #7500: vtlib: Can't use UI type 15 as EntityIdentifier in relatedListViews
vtiger development
vtiger-tickets at trac.vtiger.com
Fri Aug 24 04:48:11 PDT 2012
#7500: vtlib: Can't use UI type 15 as EntityIdentifier in relatedListViews
-----------------------+----------------------------------------------------
Reporter: alanlord | Owner: developer
Type: defect | Status: new
Priority: minor | Milestone: 6.0.0
Component: vtigercrm | Version: 5.4.0
Severity: Medium | Resolution:
Keywords: |
-----------------------+----------------------------------------------------
Comment (by alanlord):
Here's a possible patch that seems to work...
Index: include/utils/ListViewUtils.php
===================================================================
--- include/utils/ListViewUtils.php (revision 151)
+++ include/utils/ListViewUtils.php (working copy)
@@ -1393,7 +1393,11 @@
}
$value = ($current_module_strings[$temp_val] != '') ?
$current_module_strings[$temp_val] : (($app_strings[$temp_val] != '') ?
($app_strings[$temp_val]) : $temp_val);
if ($value != "<font color='red'>" .
$app_strings['LBL_NOT_ACCESSIBLE'] . "</font>") {
- $value = textlength_check($value);
+ if ($fieldname == $focus->list_link_field) {
+ $value = '<a
href="index.php?action=DetailView&module=' . $module . '&record=' .
$entity_id . '&parenttab=' . $tabname . '" id = ' . $count . '>' .
textlength_check($temp_val) . '</a>';
+ }else{
+ $value = textlength_check($value);
+ }
}
} elseif ($uitype == 16) {
$value = getTranslatedString($temp_val, $currentModule);
@@ -4210,4 +4214,4 @@
return $counter;
}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7500#comment:1>
vtiger development <http://trac.vtiger.com/>
vtiger CRM
More information about the vtigercrm-commits
mailing list