Some documents views didn't show new lines in comments. Fixed.
[fa-stable.git] / purchasing / includes / db / po_db.inc
index e841d5e8caa34208d56c97069d823a5e096939f1..ea541dcf47b087c64675bec5d70396ae8d1241fe 100644 (file)
@@ -147,7 +147,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 = $myrow["comments"];
+       $order->Comments = nl2br($myrow["comments"]);
        $order->Location = $myrow["into_stock_location"];
        $order->supp_ref = $myrow["requisition_no"];
        $order->reference = $myrow["reference"];