From: Janusz Dobrowolski Date: Fri, 6 Aug 2010 16:16:10 +0000 (+0000) Subject: Fixed multiline package property value display. X-Git-Tag: v2.4.2~19^2~719 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=989823e0a39fa25ad010d489b96abe4855ca9b60;p=fa-stable.git Fixed multiline package property value display. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index dccd3272..16b519aa 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -39,6 +39,8 @@ $ /admin/inst_theme.php $ /includes/packages.inc + Added encoding display for chart packages list $ /install/index.php +# Fixed multiline package property values display. +$ /includes/ui/view_package.php 06-Aug-2010 Joe Hunt # Bank Payment on customer statements shows in credit column, should be debit. Balance ok. diff --git a/includes/ui/view_package.php b/includes/ui/view_package.php index 9c8022cd..aa2c9df5 100644 --- a/includes/ui/view_package.php +++ b/includes/ui/view_package.php @@ -41,7 +41,7 @@ foreach ($pkg as $field => $value) { if ($value == '') continue; start_row(); - label_cells($field, htmlentities(is_array($value) ? implode('
', $value) :$value), + label_cells($field, nl2br(htmlentities(is_array($value) ? implode("\n", $value) :$value)), "class='tableheader2'"); end_row(); }