Display of newlines in memo show as html
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 22 Feb 2019 08:49:28 +0000 (09:49 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 22 Feb 2019 08:49:28 +0000 (09:49 +0100)
during purchase order modify. Fixed by @Braath Waathe-

purchasing/includes/db/po_db.inc

index b0709ee21f4d9af1be4a9528a1abd559ea017ee5..dd4929ed38fd0d89e9a16c49e86219ff62528319 100644 (file)
@@ -185,7 +185,7 @@ function read_po_header($order_no, &$order)
                $order->credit = get_current_supp_credit($order->supplier_id);
 
        $order->orig_order_date = sql2date($myrow["ord_date"]);
-       $order->Comments = nl2br($myrow["comments"]);
+       $order->Comments = $myrow["comments"];
        $order->Location = $myrow["into_stock_location"];
        $order->supp_ref = $myrow["requisition_no"];
        $order->reference = $myrow["reference"];