Browse Source

Merge pull request #3308 from atm-gauthier/3.7_fix_display_extraf_text_line_break

FIX : Line break display as a block
Laurent Destailleur 10 years ago
parent
commit
a3b379476b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      htdocs/core/class/extrafields.class.php

+ 4 - 0
htdocs/core/class/extrafields.class.php

@@ -1035,6 +1035,10 @@ class ExtraFields
 				}
 			}
 		}
+		if ($type == 'text')
+		{
+			$value=dol_htmlentitiesbr($value);
+		}
 		else
 		{
 			$showsize=round($size);