Additional access control related ui helpers added: check_edit_access, access_post...
[fa-stable.git] / purchasing / inquiry / po_search.php
index 71228317d99a9eee0aecec8164ed32169e318931..d660038a3a1dbe4c3b5da1b4d213f879ad6f5d34 100644 (file)
@@ -86,7 +86,7 @@ function trans_view($trans)
 
 function edit_link($row) 
 {
-       return trans_editor_link(ST_PURCHORDER, $trans["order_no"]);
+       return trans_editor_link(ST_PURCHORDER, $row["order_no"]);
 }
 
 function prt_link($row)
@@ -127,7 +127,7 @@ $cols = array(
                array('insert'=>true, 'fun'=>'receive_link')
 );
 
-if (get_post('StockLocation') != $all_items) {
+if (get_post('StockLocation') != ALL_TEXT) {
        $cols[_("Location")] = 'skip';
 }