[Vtigercrm-commits] [Vtiger development] #8314: Problem Description Field
Vtiger development
vtiger-tickets at trac.vtiger.com
Thu May 21 13:02:53 GMT 2015
#8314: Problem Description Field
----------------------------+------------------------
Reporter: support | Owner: developer
Type: Need More Info | Status: closed
Priority: unassigned | Milestone: 6.3.0
Component: vtigercrm | Version: 6.1.0
Severity: Medium | Resolution: fixed
Keywords: |
----------------------------+------------------------
Comment (by support):
All the solutions on this page did not help.
However in one reply someone mentioned nl2br.
I found that nl2br is being used together with pre, thus both /n and <br>
are being parsed.
The fastest solution i could find was editing the file
/vtigercrm6/modules/Vtiger/uitypes/Text.php
There changing the function getDisplayValue to:
public function getDisplayValue($value) {
$html = nl2br($value);
$html = str_replace("\n", "", $html);
return $html;
}
This removed the double linebreaks in description/solution/comments
Another solution would be to edit the template files and remove the pre
argument from the style attribute. Or edit a css file ? I did not follow
up on this solution.
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8314#comment:6>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list