Fixed multiply sales document view link generation.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 5 Nov 2008 22:29:58 +0000 (22:29 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 5 Nov 2008 22:29:58 +0000 (22:29 +0000)
includes/ui/ui_view.inc

index 1cd30802b0be9e0b44ce1fdd1d8bcf87d64070cb..6c246f53e9b0e7e04ba8632272fa02aae50b28cc 100644 (file)
@@ -87,6 +87,7 @@ function get_customer_trans_view_str($type, $trans_no, $label="")
 
   $lbl = $label;
   $preview_str = '';
+
   foreach($trans_no as $trans) {
        if ($label == "")
                $lbl = $trans;
@@ -96,7 +97,7 @@ function get_customer_trans_view_str($type, $trans_no, $label="")
        if ($viewer != "")
        {
                $pars = access_string($lbl);
-               $preview_str = "<a target='_blank' href='$path_to_root/sales/view/$viewer?trans_no=$trans' onclick=\"javascript:openWindow(this.href,this.target); return false;\" $pars[1]>$pars[0]</a>";
+               $preview_str .= "<a target='_blank' href='$path_to_root/sales/view/$viewer?trans_no=$trans' onclick=\"javascript:openWindow(this.href,this.target); return false;\" $pars[1]>$pars[0]</a>";
        }
        else
                $preview_str .= $lbl;