Fixed extension module update and deletion.
[fa-stable.git] / purchasing / inquiry / supplier_inquiry.php
index dff07c662cbf465f6b7485ecc355d5fbca486f2c..0ff509844042ce390dfb55ada9206bc491bdc0d1 100644 (file)
@@ -179,7 +179,7 @@ function check_overdue($row)
        AND trans.tran_date <= '$date_to'
                AND trans.ov_amount != 0";      // exclude voided transactions
        if ($_POST['supplier_id'] != ALL_TEXT)
-               $sql .= " AND trans.supplier_id = '" . $_POST['supplier_id'] . "'";
+               $sql .= " AND trans.supplier_id = ".db_escape($_POST['supplier_id']);
        if (isset($_POST['filterType']) && $_POST['filterType'] != ALL_TEXT)
        {
                if (($_POST['filterType'] == '1')) 
@@ -233,10 +233,6 @@ if ($_POST['supplier_id'] != ALL_TEXT)
 $table =& new_db_pager('trans_tbl', $sql, $cols);
 $table->set_marker('check_overdue', _("Marked items are overdue."));
 
-if (get_post('RefreshInquiry')) {
-       $table->set_sql($sql);
-       $table->set_columns($cols);
-}
 $table->width = "85%";
 start_form();